addAssertion()
addAssertions()
assert()
clearAssertions()
getAssertionManager()
getMode()
setAssertionManager()
setMode()
$assertionManager
$assertions
$mode
MODE_ALL
MODE_AT_LEAST_ONE
addAssertion(\Zend\Permissions\Acl\Assertion\AssertionInterface | string $assertion) : \Zend\Permissions\Acl\Assertion\self
\Zend\Permissions\Acl\Assertion\AssertionInterfacestring
if string, must match a AssertionManager declared service (checked later)
\Zend\Permissions\Acl\Assertion\self
addAssertions(array $assertions)
assert(\Zend\Permissions\Acl\Acl $acl, \Zend\Permissions\Acl\Role\RoleInterface $role, \Zend\Permissions\Acl\Resource\ResourceInterface $resource, string $privilege) : bool
This method is passed the ACL, Role, Resource, and privilege to which the authorization query applies. If the $role, $resource, or $privilege parameters are null, it means that the query applies to all Roles, Resources, or privileges, respectively.
see | \Zend\Permissions\Acl\Assertion\AssertionInterface::assert() |
---|
string
\Zend\Permissions\Acl\Exception\RuntimeException |
---|
bool
clearAssertions() : \Zend\Permissions\Acl\Assertion\self
\Zend\Permissions\Acl\Assertion\self
getAssertionManager()
getMode() : string
string
setAssertionManager(\Zend\Permissions\Acl\Assertion\AssertionManager $manager) : \Zend\Permissions\Acl\Assertion\self
\Zend\Permissions\Acl\Assertion\self
setMode(string $mode) : \Zend\Permissions\Acl\Assertion\self
AssertionAggregate should assert to true when:
string
indicates how assertion chain result should interpreted (either 'all' or 'at_least_one')
\Zend\Permissions\Acl\Exception\InvalidArgumentException |
---|
\Zend\Permissions\Acl\Assertion\self
$assertionManager : \Zend\Permissions\Acl\Assertion\$manager
$assertions
$mode
MODE_ALL
MODE_AT_LEAST_ONE