Lines Matching defs:optGroups
15 protected $optGroups = [];
29 $this->optGroups[''] = new OptGroup(null, $options);
46 $this->optGroups[$label] = new OptGroup($label, $options);
47 return end($this->optGroups);
55 * * the value being an array of options as defined in @param null|array $optGroups
60 public function optGroups($optGroups = null)
62 if ($optGroups === null) {
63 return $this->optGroups;
65 if (!is_array($optGroups)) {
68 $this->optGroups = [];
69 foreach ($optGroups as $label => $options) {
94 return $this->optGroups['']->options();
96 $this->optGroups[''] = new OptGroup(null, $options);
142 foreach ($this->optGroups as $optGroup) {
164 foreach ($this->optGroups as $optGroup) {
191 $this->optGroups,