|
Bristol SU Support Package
|


Public Member Functions | |
| __construct (PermissionStoreContract $permissionStore) | |
| get (string $ability) | |
| forModule (string $alias) | |
| all () | |
Private Attributes | |
| $permissionStore | |
Handle getting permissions from the permission store
Definition at line 14 of file PermissionRepository.php.
| BristolSU\Support\Permissions\PermissionRepository::__construct | ( | PermissionStoreContract | $permissionStore | ) |
| PermissionStoreContract | $permissionStore | Permission store to retrieve permissions from |
Definition at line 27 of file PermissionRepository.php.
References BristolSU\Support\Permissions\PermissionRepository\$permissionStore.
| BristolSU\Support\Permissions\PermissionRepository::all | ( | ) |
Get all permissions registered
Implements BristolSU\Support\Permissions\Contracts\PermissionRepository.
Definition at line 61 of file PermissionRepository.php.
| BristolSU\Support\Permissions\PermissionRepository::forModule | ( | string | $alias | ) |
Get all permissions for a given module alias
| string | $alias | Alias of the module |
Implements BristolSU\Support\Permissions\Contracts\PermissionRepository.
Definition at line 49 of file PermissionRepository.php.
References BristolSU\Support\Permissions\Contracts\Models\Permission\getModuleAlias().
| BristolSU\Support\Permissions\PermissionRepository::get | ( | string | $ability | ) |
Get a permission from the permission store
| string | $ability | Ability of the permission |
Implements BristolSU\Support\Permissions\Contracts\PermissionRepository.
Definition at line 38 of file PermissionRepository.php.
|
private |
Definition at line 22 of file PermissionRepository.php.
Referenced by BristolSU\Support\Permissions\PermissionRepository\__construct().
1.8.13