Interface IPermissionAssertion


Represents conditional ACL NRules with Assertions.


Author: David Grudl
Copyright: Copyright (c) 2004, 2009 David Grudl
Located: in /Security/IPermissionAssertion.php (line 29)
Public Method Summary
bool
assert (NPermission $acl, string $roleId, string $resourceId, string|NULL $privilege)
Returns true if and only if the assertion conditions are met.

Method Details

line 44

assert

public bool assert (NPermission $acl, string $roleId, string $resourceId, string|NULL $privilege)

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

This method is passed the ACL, Role, Resource, and privilege to which the authorization query applies. If the $role, $resource, or $privilege parameters are NPermission::ALL, it means that the query applies to all Roles, Resources, or privileges, respectively.

Input
NPermission $acl
string $roleId role
string $resourceId resource
string|NULL $privilege privilege
Output
bool