class PermissionsRepository

Class PermissionsRepository is used to retrieve permission data

Methods

__construct(Framework $Framework, $File = null)

No description

array
getAllPermissions()

Get all permissions from current permissions config

array
availablePermissions()

Get all the available permissions we can pick from on the menu items list

array
getPermissionByPath(string $condition)

Get permission and any related data by using its permission path to retrieve its related data from the permissions config

array
allPermissionsPaginated(integer $perPage = 25)

Get an array of all permission paths and human names

array
availableRulesList()

Uses available rules from Devise\Users\Permissions\RuleManager Class to build options for select

array
getRuleParamMap($rules)

Uses array of rule names to create a map of names to paramter count

Details

at line 15
__construct(Framework $Framework, $File = null)

Parameters

Framework $Framework
$File

at line 28
array getAllPermissions()

Get all permissions from current permissions config

Return Value

array

at line 39
array availablePermissions()

Get all the available permissions we can pick from on the menu items list

Return Value

array

at line 51
array getPermissionByPath(string $condition)

Get permission and any related data by using its permission path to retrieve its related data from the permissions config

Parameters

string $condition

Return Value

array

at line 90
array allPermissionsPaginated(integer $perPage = 25)

Get an array of all permission paths and human names

Parameters

integer $perPage

Return Value

array

at line 110
array availableRulesList()

Uses available rules from Devise\Users\Permissions\RuleManager Class to build options for select

Return Value

array

at line 125
array getRuleParamMap($rules)

Uses array of rule names to create a map of names to paramter count

Parameters

$rules

Return Value

array