| @@ 89-100 (lines=12) @@ | ||
| 86 | * |
|
| 87 | * @return mixed |
|
| 88 | */ |
|
| 89 | public function getValue() |
|
| 90 | { |
|
| 91 | $selectedValues = []; |
|
| 92 | ||
| 93 | foreach ($this->options as $option) { |
|
| 94 | if ($option['checked']) { |
|
| 95 | $selectedValues[] = $option['value']; |
|
| 96 | } |
|
| 97 | } |
|
| 98 | ||
| 99 | return $selectedValues; |
|
| 100 | } |
|
| 101 | ||
| 102 | /** |
|
| 103 | * Set label-value options for the element. |
|
| @@ 72-85 (lines=14) @@ | ||
| 69 | * |
|
| 70 | * @return mixed |
|
| 71 | */ |
|
| 72 | public function getValue() |
|
| 73 | { |
|
| 74 | $selectedValues = []; |
|
| 75 | ||
| 76 | foreach ($this->options as $options) { |
|
| 77 | foreach ($options as $option) { |
|
| 78 | if ($option['checked']) { |
|
| 79 | $selectedValues[] = $option['value']; |
|
| 80 | } |
|
| 81 | } |
|
| 82 | } |
|
| 83 | ||
| 84 | return $selectedValues; |
|
| 85 | } |
|
| 86 | ||
| 87 | /** |
|
| 88 | * Set label-value options for the element. |
|