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)

Описание

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.

Параметр

array $options

Array of options for the second select

Throws

throws no exceptions thrown

См. также

see setMainOptions().

Заметка

Эта функция не должна вызываться статически.

Пример