| @@ 100-111 (lines=12) @@ | ||
| 97 | * |
|
| 98 | * @return mixed |
|
| 99 | */ |
|
| 100 | public function getValue() |
|
| 101 | { |
|
| 102 | $selectedValues = []; |
|
| 103 | ||
| 104 | foreach ($this->options as $option) { |
|
| 105 | if ($option['checked']) { |
|
| 106 | $selectedValues[] = $option['value']; |
|
| 107 | } |
|
| 108 | } |
|
| 109 | ||
| 110 | return $selectedValues; |
|
| 111 | } |
|
| 112 | ||
| 113 | /** |
|
| 114 | * Set label-value options for the element. |
|
| @@ 91-104 (lines=14) @@ | ||
| 88 | * |
|
| 89 | * @return mixed |
|
| 90 | */ |
|
| 91 | public function getValue() |
|
| 92 | { |
|
| 93 | $selectedValues = []; |
|
| 94 | ||
| 95 | foreach ($this->options as $options) { |
|
| 96 | foreach ($options as $option) { |
|
| 97 | if ($option['checked']) { |
|
| 98 | $selectedValues[] = $option['value']; |
|
| 99 | } |
|
| 100 | } |
|
| 101 | } |
|
| 102 | ||
| 103 | return $selectedValues; |
|
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * Sets label-value option for the element. |
|