Lines Matching refs:value
55 * * the value being an array of options as defined in @param null|array $optGroups
78 * Options can be given as associative array (value => label) or as an
79 * indexd array (label = value) or as an array of arrays. In the latter
81 * option-value => array (
84 * attr-key => attr-value, ...
101 * Get or set the current value
103 * When setting a value that is not defined in the options, the value is ignored
104 * and the first option's value is selected instead
106 * @param null|string|string[] $value The value to set
109 public function val($value = null)
112 if ($value === null) {
121 $this->values = $this->setValuesInOptGroups((array) $value);
123 // unknown value set, select first option instead
154 * Set the value in the OptGroups, including the optgroup for the options without optgroup.