HTML_QuickForm_select::setSelected()

HTML_QuickForm_select::setSelected() – Sets the default values of the select box

Synopsis

require_once 'HTML/QuickForm/select.php';

void HTML_QuickForm_select::setSelected ( mixed $values )

Описание

This method is an alias for setValue(). For multiple selects you can pass either an array or a comma delimited string of values.

Parameter

mixed $values

Array or comma delimited string of selected values

Throws

throws no exceptions thrown

See

see getSelected().

Замечание

since 1.0

This function can not be called statically.

    Поддержать сайт на родительском проекте КГБ