Свойство | Тип | Описание | |
---|---|---|---|
$bag | array | memory cache | |
$cache | Xpressengine\Support\CacheInterface | Cache instance | |
$prefix | string | Prefix for cache key | |
$repo | Xpressengine\Permission\PermissionRepository | PermissionRepository instance |
Метод | Описание | |
---|---|---|
__construct ( Xpressengine\Permission\PermissionRepository $repo, Xpressengine\Support\CacheInterface $cache ) | CacheDecorator constructor. | |
affiliate ( |
affiliated to another registered | |
delete ( |
Delete register information | |
fetchAncestor ( string $siteKey, string $name ) : array | Returns ancestor of item | |
fetchDescendant ( string $siteKey, string $name ) : array | Returns descendant of item | |
findByName ( string $siteKey, string $name ) : |
Find a registered by type and name | |
foster ( |
Parent Changing with descendant | |
insert ( |
Insert register information | |
update ( |
Update register information |
Метод | Описание | |
---|---|---|
erase ( string $siteKey, string $name ) : void | Remove cache data | |
getCacheKey ( string $keyword ) : string | String for cache key | |
getData ( string $siteKey, string $head ) : array | get cached data | |
makeKey ( string $siteKey, string $name ) : string | Make key by combination of site key and target name |
Метод | Описание | |
---|---|---|
getHead ( string $name ) : array | parse name to head and segments |
public __construct ( Xpressengine\Permission\PermissionRepository $repo, Xpressengine\Support\CacheInterface $cache ) | ||
$repo | Xpressengine\Permission\PermissionRepository | PermissionRepository instance |
$cache | Xpressengine\Support\CacheInterface | Cache instance |
public findByName ( string $siteKey, string $name ) : |
||
$siteKey | string | site key |
$name | string | target name |
Результат |
protected getCacheKey ( string $keyword ) : string | ||
$keyword | string | keyword |
Результат | string |
public insert ( |
||
$item | permission instance | |
Результат |
public update ( |
||
$item | permission instance | |
Результат |
protected CacheInterface,Xpressengine\Support $cache | ||
Результат | Xpressengine\Support\CacheInterface |