| @@ 300-315 (lines=16) @@ | ||
| 297 | foreach ($allSelections as $index => $selection) { |
|
| 298 | $allSelections[$index]['active'] = in_array($selection['id'], $selected); |
|
| 299 | } |
|
| 300 | if (null !== $allSelections) { |
|
| 301 | Yii::$app->cache->set( |
|
| 302 | $cacheKey, |
|
| 303 | $allSelections, |
|
| 304 | 0, |
|
| 305 | new TagDependency( |
|
| 306 | [ |
|
| 307 | 'tags' => [ |
|
| 308 | ActiveRecordHelper::getCommonTag(PropertyStaticValues::className()), |
|
| 309 | ActiveRecordHelper::getCommonTag(Property::className()), |
|
| 310 | ] |
|
| 311 | ||
| 312 | ] |
|
| 313 | ) |
|
| 314 | ); |
|
| 315 | } |
|
| 316 | } |
|
| 317 | return $allSelections; |
|
| 318 | } |
|
| @@ 354-369 (lines=16) @@ | ||
| 351 | 'name' => SORT_ASC |
|
| 352 | ] |
|
| 353 | )->asArray()->all(); |
|
| 354 | if (null !== $values) { |
|
| 355 | Yii::$app->cache->set( |
|
| 356 | $cacheKey, |
|
| 357 | $values, |
|
| 358 | 0, |
|
| 359 | new TagDependency( |
|
| 360 | [ |
|
| 361 | 'tags' => [ |
|
| 362 | ActiveRecordHelper::getCommonTag(PropertyStaticValues::className()), |
|
| 363 | ActiveRecordHelper::getCommonTag(Property::className()), |
|
| 364 | ] |
|
| 365 | ||
| 366 | ] |
|
| 367 | ) |
|
| 368 | ); |
|
| 369 | } |
|
| 370 | } |
|
| 371 | return $values; |
|
| 372 | } |
|