$roles
$roles : array
Array of roles
ACL class
getRole(string $role) : \Pop\Acl\AclRole
Get a role
string | $role |
addRole(\Pop\Acl\AclRole $role) : \Pop\Acl\Acl
Add a role
\Pop\Acl\AclRole | $role |
addRoles(array $roles) : \Pop\Acl\Acl
Add roles
array | $roles |
getResource(string $resource) : \Pop\Acl\AclResource
Get a resource
string | $resource |
addResource(\Pop\Acl\AclResource $resource) : \Pop\Acl\Acl
Add a resource
\Pop\Acl\AclResource | $resource |
addResources(array $resources) : \Pop\Acl\Acl
Add resources
array | $resources |
allow(mixed $role, mixed $resource = null, mixed $permission = null, \Pop\Acl\Assertion\AssertionInterface $assertion = null) : \Pop\Acl\Acl
Allow a user role permission to a resource or resources
mixed | $role | |
mixed | $resource | |
mixed | $permission | |
\Pop\Acl\Assertion\AssertionInterface | $assertion |
removeAllowRule(mixed $role, mixed $resource = null, mixed $permission = null) : \Pop\Acl\Acl
Remove an allow rule
mixed | $role | |
mixed | $resource | |
mixed | $permission |
deny(mixed $role, mixed $resource = null, mixed $permission = null, \Pop\Acl\Assertion\AssertionInterface $assertion = null) : \Pop\Acl\Acl
Deny a user role permission to a resource or resources
mixed | $role | |
mixed | $resource | |
mixed | $permission | |
\Pop\Acl\Assertion\AssertionInterface | $assertion |
removeDenyRule(mixed $role, mixed $resource = null, mixed $permission = null) : \Pop\Acl\Acl
Remove a deny rule
mixed | $role | |
mixed | $resource | |
mixed | $permission |
isAllowedMany(array $roles, mixed $resource = null, mixed $permission = null) : boolean
Determine if a user that is assigned many roles is allowed If one of the roles is allowed, then the user will be allowed (return true)
array | $roles | |
mixed | $resource | |
mixed | $permission |
isAllowedManyStrict(array $roles, mixed $resource = null, mixed $permission = null) : boolean
Determine if a user that is assigned many roles is allowed All of the roles must be allowed to allow the user (return true)
array | $roles | |
mixed | $resource | |
mixed | $permission |
isDeniedMany(array $roles, mixed $resource = null, mixed $permission = null) : boolean
Determine if a user that is assigned many roles is denied If one of the roles is denied, then the user will be denied (return true)
array | $roles | |
mixed | $resource | |
mixed | $permission |
isDeniedManyStrict(array $roles, mixed $resource = null, mixed $permission = null) : boolean
Determine if a user that is assigned many roles is denied All of the roles must be denied to deny the user (return true)
array | $roles | |
mixed | $resource | |
mixed | $permission |
createAssertion(\Pop\Acl\Assertion\AssertionInterface $assertion, string $type, mixed $role, mixed $resource = null, string $permission = null) : void
Create assertion
\Pop\Acl\Assertion\AssertionInterface | $assertion | |
string | $type | |
mixed | $role | |
mixed | $resource | |
string | $permission |
addPolicy(string $method, mixed $role, mixed $resource = null) : \Pop\Acl\Acl
Add policy
string | $method | |
mixed | $role | |
mixed | $resource |