| @@ 105-116 (lines=12) @@ | ||
| 102 | * |
|
| 103 | * @return mixed |
|
| 104 | */ |
|
| 105 | public function getValue() |
|
| 106 | { |
|
| 107 | $selectedValues = []; |
|
| 108 | ||
| 109 | foreach ($this->options as $option) { |
|
| 110 | if ($option['checked']) { |
|
| 111 | $selectedValues[] = $option['value']; |
|
| 112 | } |
|
| 113 | } |
|
| 114 | ||
| 115 | return $selectedValues; |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * Set label-value options for the element. |
|
| @@ 70-83 (lines=14) @@ | ||
| 67 | * |
|
| 68 | * @return mixed |
|
| 69 | */ |
|
| 70 | public function getValue() |
|
| 71 | { |
|
| 72 | $selectedValues = []; |
|
| 73 | ||
| 74 | foreach ($this->options as $options) { |
|
| 75 | foreach ($options as $option) { |
|
| 76 | if ($option['checked']) { |
|
| 77 | $selectedValues[] = $option['value']; |
|
| 78 | } |
|
| 79 | } |
|
| 80 | } |
|
| 81 | ||
| 82 | return $selectedValues; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * Sets label-value option for the element. |
|