Lines Matching refs:optionSpec
175 foreach ($options as $key => $optionSpec) {
181 if (is_scalar($optionSpec)) {
182 $optionSpec = array(
183 'label' => $optionSpec,
188 if (isset($optionSpec['options']) && is_array($optionSpec['options'])) {
189 $optionStrings[] = $this->renderOptgroup($optionSpec, $selectedOptions);
193 if (isset($optionSpec['value'])) {
194 $value = $optionSpec['value'];
196 if (isset($optionSpec['label'])) {
197 $label = $optionSpec['label'];
199 if (isset($optionSpec['selected'])) {
200 $selected = $optionSpec['selected'];
202 if (isset($optionSpec['disabled'])) {
203 $disabled = $optionSpec['disabled'];
219 if (isset($optionSpec['attributes']) && is_array($optionSpec['attributes'])) {
220 $attributes = array_merge($attributes, $optionSpec['attributes']);