Filter/Widget/Dynamic/DynamicAggregate.php 1 location
|
@@ 301-312 (lines=12) @@
|
| 298 |
|
* |
| 299 |
|
* @return bool |
| 300 |
|
*/ |
| 301 |
|
protected function isChoiceActive($key, ViewData $data, $activeName) |
| 302 |
|
{ |
| 303 |
|
if ($data->getState()->isActive()) { |
| 304 |
|
$value = $data->getState()->getValue(); |
| 305 |
|
|
| 306 |
|
if (isset($value[$activeName]) && $key == $value[$activeName]) { |
| 307 |
|
return true; |
| 308 |
|
} |
| 309 |
|
} |
| 310 |
|
|
| 311 |
|
return false; |
| 312 |
|
} |
| 313 |
|
|
| 314 |
|
/** |
| 315 |
|
* Forms $unsortedChoices array with all possible choices. |
Filter/Widget/Dynamic/MultiDynamicAggregate.php 1 location
|
@@ 117-128 (lines=12) @@
|
| 114 |
|
* |
| 115 |
|
* @return bool |
| 116 |
|
*/ |
| 117 |
|
protected function isChoiceActive($key, ViewData $data, $activeName) |
| 118 |
|
{ |
| 119 |
|
if ($data->getState()->isActive()) { |
| 120 |
|
$value = $data->getState()->getValue(); |
| 121 |
|
|
| 122 |
|
if (isset($value[$activeName]) && in_array($key, $value[$activeName])) { |
| 123 |
|
return true; |
| 124 |
|
} |
| 125 |
|
} |
| 126 |
|
|
| 127 |
|
return false; |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
/** |
| 131 |
|
* @param array $terms |