12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?php
- namespace app\common\components;
- use Yii;
- class CacheId
- {
- static function getInitCls()
- {
- static $initCls = NULL;
- if(!isset($initCls)) $initCls = new CacheId();
- return $initCls;
-
- }
-
- static function modelFieldCacheId($model_id)
- {
- return 'modelfield_'.$model_id;
- }
-
- static function modelListCacheId()
- {
- return 'modellist';
- }
-
- static function categoryCacheId()
- {
- return 'categorys';
- }
-
- static function categoryItemsCacheId($model_id)
- {
- return 'category_items_'.$model_id;
- }
-
- static function copyFromCacheId()
- {
- return 'copyfrom';
- }
-
- static function groupCacheId()
- {
- return 'grouplist';
- }
-
- static function linkMenuCacheId($id)
- {
- return 'linkmenu_'.$id;
- }
-
- static function navCacheId()
- {
- return 'nav';
- }
-
- static function positionCacheId()
- {
- return 'position';
- }
- static function typeCacheId()
- {
- return 'typelist';
- }
-
- static function siteConfigCacheId()
- {
- return 'siteconfig';
- }
- }
|