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