Property | Type | Description | |
---|---|---|---|
$permissionsClass | string | The permissions instance class name. | |
$permissionsInstance | Cartalyst\Sentinel\Permissions\PermissionsInterface | The cached permissions instance for the given user. |
Method | Description | |
---|---|---|
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} |
Method | Description | |
---|---|---|
createPermissions ( ) : Cartalyst\Sentinel\Permissions\PermissionsInterface | Creates the permissions object. |
abstract protected createPermissions ( ) : Cartalyst\Sentinel\Permissions\PermissionsInterface | ||
return | Cartalyst\Sentinel\Permissions\PermissionsInterface |
public getPermissions ( ) : array | ||
return | array |
public static getPermissionsClass ( ) : string | ||
return | string |
public setPermissions ( array $permissions ) : void | ||
$permissions | array | |
return | void |
public static setPermissionsClass ( string $permissionsClass ) : void | ||
$permissionsClass | string | |
return | void |
public updatePermission ( $permission, $value = true, $create = false ) |
protected static string $permissionsClass | ||
return | string |