package Default

 Methods

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.

Parameters

$acl

\Zend\Permissions\Acl\Acl

$role

\Zend\Permissions\Acl\Role\RoleInterface

$resource

\Zend\Permissions\Acl\Resource\ResourceInterface

$privilege

string

Returns

boolean