| @@ 92-103 (lines=12) @@ | ||
| 89 | * |
|
| 90 | * @return mixed |
|
| 91 | */ |
|
| 92 | public function getValue() |
|
| 93 | { |
|
| 94 | $selectedValues = []; |
|
| 95 | ||
| 96 | foreach ($this->options as $option) { |
|
| 97 | if ($option['checked']) { |
|
| 98 | $selectedValues[] = $option['value']; |
|
| 99 | } |
|
| 100 | } |
|
| 101 | ||
| 102 | return $selectedValues; |
|
| 103 | } |
|
| 104 | ||
| 105 | /** |
|
| 106 | * Set label-value options for the element. |
|
| @@ 84-97 (lines=14) @@ | ||
| 81 | * |
|
| 82 | * @return mixed |
|
| 83 | */ |
|
| 84 | public function getValue() |
|
| 85 | { |
|
| 86 | $selectedValues = []; |
|
| 87 | ||
| 88 | foreach ($this->options as $options) { |
|
| 89 | foreach ($options as $option) { |
|
| 90 | if ($option['checked']) { |
|
| 91 | $selectedValues[] = $option['value']; |
|
| 92 | } |
|
| 93 | } |
|
| 94 | } |
|
| 95 | ||
| 96 | return $selectedValues; |
|
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * Sets label-value option for the element. |
|