Property | Type | Description | |
---|---|---|---|
$bag | array | memory cache | |
$cache | Xpressengine\Support\CacheInterface | Cache instance | |
$prefix | string | Prefix for cache key | |
$repo | Xpressengine\Permission\PermissionRepository | PermissionRepository instance |
Method | Description | |
---|---|---|
__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 |
Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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 |
return |
protected getCacheKey ( string $keyword ) : string | ||
$keyword | string | keyword |
return | string |
public insert ( |
||
$item | permission instance | |
return |
public update ( |
||
$item | permission instance | |
return |
protected CacheInterface,Xpressengine\Support $cache | ||
return | Xpressengine\Support\CacheInterface |