1 | <?php |
||
19 | class LangCache extends Lang |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | public static $cacheKey = 'LangCache::cacheKey'; |
||
25 | /** |
||
26 | * @var string|array|CacheInterface |
||
27 | */ |
||
28 | public $cache = 'cache'; |
||
29 | |||
30 | /** |
||
31 | * @return \yii\caching\CacheInterface |
||
32 | */ |
||
33 | public function getCache() |
||
37 | |||
38 | /** |
||
39 | * @inheritdoc |
||
40 | */ |
||
41 | public function afterDelete() |
||
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | * @param bool $insert |
||
50 | * @param array $changedAttributes |
||
51 | */ |
||
52 | public function afterSave($insert, $changedAttributes) |
||
59 | |||
60 | /** |
||
61 | * Invalidate cache for all cached lists |
||
62 | */ |
||
63 | public function invalidateCache() |
||
67 | |||
68 | /** |
||
69 | * @return TagDependency |
||
70 | */ |
||
71 | public static function getDependency() |
||
75 | |||
76 | /** |
||
77 | * @param bool $active default false |
||
78 | * @return array |
||
79 | */ |
||
80 | public static function getList($active = false) |
||
86 | |||
87 | /** |
||
88 | * @param bool $active default true |
||
89 | * @return array |
||
90 | */ |
||
91 | public static function getLocaleList($active = true) |
||
97 | } |