Метод |
Описание |
|
__construct ( Xpressengine\Permission\PermissionRepository $repo ) |
PermissionHandler constructor. |
|
destroy ( string $name, string $siteKey = 'default' ) : void |
Remove from repository |
|
find ( string $name, string $siteKey = 'default' ) : Permission | null |
Get a permission from repository |
|
findOrNew ( string $name, string $siteKey = 'default' ) : Permission | null |
Get a permission from repository or generate when not exists |
|
get ( string $name, string $siteKey = 'default' ) : Permission | null |
Get a permission from repository |
|
getOrNew ( string $name, string $siteKey = 'default' ) : Permission | null |
Get a permission from repository or generate when not exists |
|
loadBranch ( string $name, string $siteKey = 'default' ) : void |
특정 대상이 포함된 하위 권한 정보를 가져와 캐싱 함 |
|
move ( Permission $permission, string | null $to = null ) : void |
Move entity hierarchy to new parent or root |
|
newItem ( ) : Permission |
Returns new permission instance |
|
register ( string $name, Grant $grant, string $siteKey = 'default' ) : Permission |
Register permission information |
|