1 | <?php |
||
13 | class LangCache extends Lang |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | public static $cacheKey = 'LangCache::cacheKey'; |
||
19 | /** |
||
20 | * @var string|array|CacheInterface |
||
21 | */ |
||
22 | public $cache = 'cache'; |
||
23 | |||
24 | /** |
||
25 | * @return \yii\caching\CacheInterface |
||
26 | */ |
||
27 | public function getCache() |
||
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | public function afterDelete() |
||
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | * @param bool $insert |
||
44 | * @param array $changedAttributes |
||
45 | */ |
||
46 | public function afterSave($insert, $changedAttributes) |
||
53 | |||
54 | /** |
||
55 | * Invalidate cache for all cached lists |
||
56 | */ |
||
57 | public function invalidateCache() |
||
61 | |||
62 | /** |
||
63 | * @return TagDependency |
||
64 | */ |
||
65 | public static function getDependency() |
||
69 | |||
70 | /** |
||
71 | * @param bool $active default false |
||
72 | * @return array |
||
73 | */ |
||
74 | public static function getList($active = false) |
||
80 | |||
81 | /** |
||
82 | * @param bool $active default true |
||
83 | * @return array |
||
84 | */ |
||
85 | public static function getLocaleList($active = true) |
||
91 | } |