Метод | Описание | |
---|---|---|
addPermission ( string $permission, boolean $value = true ) : Cartalyst\Sentinel\Permissions\PermissibleInterface | Adds a permission. | |
getPermissionsInstance ( ) : Cartalyst\Sentinel\Permissions\PermissionsInterface | Returns the permissions instance. | |
removePermission ( string $permission ) : Cartalyst\Sentinel\Permissions\PermissibleInterface | Removes a permission. | |
updatePermission ( string $permission, boolean $value = true, boolean $create = false ) : Cartalyst\Sentinel\Permissions\PermissibleInterface | Updates a permission. |
public addPermission ( string $permission, boolean $value = true ) : Cartalyst\Sentinel\Permissions\PermissibleInterface | ||
$permission | string | |
$value | boolean | |
Результат | Cartalyst\Sentinel\Permissions\PermissibleInterface |
public getPermissionsInstance ( ) : Cartalyst\Sentinel\Permissions\PermissionsInterface | ||
Результат | Cartalyst\Sentinel\Permissions\PermissionsInterface |
public removePermission ( string $permission ) : Cartalyst\Sentinel\Permissions\PermissibleInterface | ||
$permission | string | |
Результат | Cartalyst\Sentinel\Permissions\PermissibleInterface |