Filter/Widget/Dynamic/DynamicAggregate.php 1 location
|
@@ 352-363 (lines=12) @@
|
349 |
|
* |
350 |
|
* @return bool |
351 |
|
*/ |
352 |
|
protected function isChoiceActive($key, ViewData $data, $activeName) |
353 |
|
{ |
354 |
|
if ($data->getState()->isActive()) { |
355 |
|
$value = $data->getState()->getValue(); |
356 |
|
|
357 |
|
if (isset($value[$activeName]) && $key == $value[$activeName]) { |
358 |
|
return true; |
359 |
|
} |
360 |
|
} |
361 |
|
|
362 |
|
return false; |
363 |
|
} |
364 |
|
|
365 |
|
/** |
366 |
|
* Forms $unsortedChoices array with all possible choices. |
Filter/Widget/Dynamic/MultiDynamicAggregate.php 1 location
|
@@ 120-131 (lines=12) @@
|
117 |
|
* |
118 |
|
* @return bool |
119 |
|
*/ |
120 |
|
protected function isChoiceActive($key, ViewData $data, $activeName) |
121 |
|
{ |
122 |
|
if ($data->getState()->isActive()) { |
123 |
|
$value = $data->getState()->getValue(); |
124 |
|
|
125 |
|
if (isset($value[$activeName]) && in_array($key, $value[$activeName])) { |
126 |
|
return true; |
127 |
|
} |
128 |
|
} |
129 |
|
|
130 |
|
return false; |
131 |
|
} |
132 |
|
|
133 |
|
/** |
134 |
|
* @param array $terms |