Свойство | Тип | Описание | |
---|---|---|---|
$permissionsClass | string | The permissions instance class name. | |
$permissionsInstance | Cartalyst\Sentinel\Permissions\PermissionsInterface | The cached permissions instance for the given user. |
Метод | Описание | |
---|---|---|
addPermission ( $permission, $value = true ) | {@inheritDoc} | |
getPermissions ( ) : array | Returns the permissions. | |
getPermissionsClass ( ) : string | Returns the permissions class name. | |
getPermissionsInstance ( ) | {@inheritDoc} | |
removePermission ( $permission ) | {@inheritDoc} | |
setPermissions ( array $permissions ) : void | Sets permissions. | |
setPermissionsClass ( string $permissionsClass ) : void | Sets the permissions class name. | |
updatePermission ( $permission, $value = true, $create = false ) | {@inheritDoc} |
Метод | Описание | |
---|---|---|
createPermissions ( ) : Cartalyst\Sentinel\Permissions\PermissionsInterface | Creates the permissions object. |
abstract protected createPermissions ( ) : Cartalyst\Sentinel\Permissions\PermissionsInterface | ||
Результат | Cartalyst\Sentinel\Permissions\PermissionsInterface |
public getPermissions ( ) : array | ||
Результат | array |
public static getPermissionsClass ( ) : string | ||
Результат | string |
public setPermissions ( array $permissions ) : void | ||
$permissions | array | |
Результат | void |
public static setPermissionsClass ( string $permissionsClass ) : void | ||
$permissionsClass | string | |
Результат | void |
public updatePermission ( $permission, $value = true, $create = false ) |
protected static string $permissionsClass | ||
Результат | string |