\Pop\AclAclInterface

Acl interface

Summary

Methods
Constants
allow()
removeAllowRule()
deny()
removeDenyRule()
isAllowed()
isDenied()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

allow()

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

Parameters

mixed $role
mixed $resource
mixed $permission
\Pop\Acl\Assertion\AssertionInterface $assertion

Throws

\Pop\Acl\Exception

Returns

\Pop\Acl\Acl

removeAllowRule()

removeAllowRule(mixed  $role, mixed  $resource = null, mixed  $permission = null, \Pop\Acl\Assertion\AssertionInterface  $assertion = null) : \Pop\Acl\Acl

Remove an allow rule

Parameters

mixed $role
mixed $resource
mixed $permission
\Pop\Acl\Assertion\AssertionInterface $assertion

Throws

\Pop\Acl\Exception

Returns

\Pop\Acl\Acl

deny()

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

Parameters

mixed $role
mixed $resource
mixed $permission
\Pop\Acl\Assertion\AssertionInterface $assertion

Throws

\Pop\Acl\Exception

Returns

\Pop\Acl\Acl

removeDenyRule()

removeDenyRule(mixed  $role, mixed  $resource = null, mixed  $permission = null, \Pop\Acl\Assertion\AssertionInterface  $assertion = null) : \Pop\Acl\Acl

Remove a deny rule

Parameters

mixed $role
mixed $resource
mixed $permission
\Pop\Acl\Assertion\AssertionInterface $assertion

Throws

\Pop\Acl\Exception

Returns

\Pop\Acl\Acl

isAllowed()

isAllowed(mixed  $role, mixed  $resource = null, mixed  $permission = null) : boolean

Determine if the user is allowed

Parameters

mixed $role
mixed $resource
mixed $permission

Throws

\Pop\Acl\Exception

Returns

boolean

isDenied()

isDenied(mixed  $role, mixed  $resource = null, mixed  $permission = null) : boolean

Determine if the user is denied

Parameters

mixed $role
mixed $resource
mixed $permission

Throws

\Pop\Acl\Exception

Returns

boolean