1 | <?php |
||
16 | class RbacCached extends DbManager { |
||
17 | |||
18 | /** |
||
19 | * @var integer Lifetime of cached data in seconds |
||
20 | */ |
||
21 | public $cacheDuration = 3600; |
||
22 | |||
23 | /** |
||
24 | * @var string cache key name |
||
25 | */ |
||
26 | public $cacheKeyName = 'RbacCached'; |
||
27 | |||
28 | /** |
||
29 | * @var array php cache |
||
30 | */ |
||
31 | protected $cachedData = []; |
||
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | public function checkAccess($userId, $permissionName, $params = []) { |
||
48 | |||
49 | /** |
||
50 | * @inheritdoc |
||
51 | */ |
||
52 | protected function checkAccessRecursive($user, $itemName, $params, $assignments) { |
||
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | */ |
||
68 | protected function getItem($name) { |
||
77 | |||
78 | /** |
||
79 | * @inheritdoc |
||
80 | */ |
||
81 | public function getAssignments($userId) { |
||
93 | |||
94 | /** |
||
95 | * Set a value in cache |
||
96 | * @param $key |
||
97 | * @param $value |
||
98 | * @return mixed |
||
99 | */ |
||
100 | protected function setCache($key, $value) { |
||
107 | |||
108 | /** |
||
109 | * Get cached value |
||
110 | * @param $key |
||
111 | * @return mixed |
||
112 | */ |
||
113 | protected function getCache($key) { |
||
121 | |||
122 | /** |
||
123 | * Get cached value |
||
124 | * @param $key |
||
125 | * @return mixed |
||
126 | */ |
||
127 | public function deleteAllCache() { |
||
130 | |||
131 | /** |
||
132 | * Returns cache component configured as in cacheId |
||
133 | * @return Cache |
||
134 | */ |
||
135 | protected function resolveCacheComponent() { |
||
138 | } |
||
139 | |||
140 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.