Public Member Functions | |
__construct (RoleContextInterface $roleContext) | |
setRules (array $aclConfigNodes) | |
isAllowed ($resourceType, $folderPath, $permission, $role=null) | |
getComputedMask ($resourceType, $folderPath, $role=null) | |
![]() | |
allow ($resourceType, $folderPath, $permission, $role) | |
disallow ($resourceType, $folderPath, $permission, $role) | |
isAllowed ($resourceType, $folderPath, $permission, $role=null) | |
getComputedMask ($resourceType, $folderPath, $role=null) | |
Protected Attributes | |
$rules = [] | |
$roleContext | |
$cachedResults = [] | |
The Acl class.
__construct | ( | RoleContextInterface | $roleContext | ) |
Constructor.
getComputedMask | ( | $resourceType, | |
$folderPath, | |||
$role = null |
|||
) |
Returns a computed mask.
string | $resourceType | |
string | $folderPath | |
null | string | $role |
Implements AclInterface.
isAllowed | ( | $resourceType, | |
$folderPath, | |||
$permission, | |||
$role = null |
|||
) |
Checks if a given role has a permission.
string | $resourceType | |
string | $folderPath | |
int | $permission | |
null | string | $role |
Implements AclInterface.
setRules | ( | array | $aclConfigNodes | ) |
Sets rules for Access Control Lists using configuration nodes.
It is assumed that Acl configuration nodes used here have the following form:
If any permission is missing, it is inherited from the parent folder.
array | $aclConfigNodes | Access Control Lists configuration nodes |