HTML_QuickForm_hierselect::setSecOptions()

HTML_QuickForm_hierselect::setSecOptions() -- Sets the options for the secondary select

Synopsis

require_once 'HTML/QuickForm/hierselect.php';

void HTML_QuickForm_hierselect::setSecOptions (array $options)

Description

Sets the options for the secondary select. Options are passed as a two-dimensional array, where the first key is parent id and the second key is child id, as it is needed to know the parent option to which the secondary option relates.

Parameter

array $options

Array of options for the second select

Throws

throws no exceptions thrown

See

see setMainOptions().

Note

This function can not be called statically.

Example