package Default

 Methods

__construct()

__construct(callable $callback) 

Parameters

$callback

callable

The assertion callback

Returns true if and only if the assertion conditions are met.

assert(\Zend\Permissions\Acl\Acl $acl, \Zend\Permissions\Acl\Role\RoleInterface $role = null, \Zend\Permissions\Acl\Resource\ResourceInterface $resource = null, string $privilege = null) : boolean

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.

inherited_from \Zend\Permissions\Acl\Assertion\AssertionInterface::assert()

Parameters

$acl

\Zend\Permissions\Acl\Acl

$role

\Zend\Permissions\Acl\Role\RoleInterface

$resource

\Zend\Permissions\Acl\Resource\ResourceInterface

$privilege

string

Returns

boolean

 Properties

 

$callback

$callback : callable

Default