\Acl\AssertionAssertionEvent

This event is passed around from instances of EventManager aware assertions.

It will get populated with the Acl, the role, the resource and the privilege and provide convenient getter methods.

Summary

Methods
Properties
Constants
setAcl()
getAcl()
setPrivilege()
getPrivilege()
setResource()
getResource()
setRole()
getRole()
No public properties found
EVENT_ASSERT
No protected methods found
$acl
$role
$resource
$privilege
$name
N/A
No private methods found
No private properties found
N/A

Constants

EVENT_ASSERT

EVENT_ASSERT

Events

Properties

$acl

$acl : \Zend\Permissions\Acl\Acl

The acl instance

Type

\Zend\Permissions\Acl\Acl

$role

$role : \Zend\Permissions\Acl\Role\RoleInterface

The role.

Type

\Zend\Permissions\Acl\Role\RoleInterface

$resource

$resource : \Zend\Permissions\Acl\Resource\ResourceInterface

The resource.

Type

\Zend\Permissions\Acl\Resource\ResourceInterface

$privilege

$privilege : string

The privilege.

Type

string

$name

$name

Methods

setAcl()

setAcl(\Zend\Permissions\Acl\Acl $acl) : self

Sets the acl instance.

Parameters

\Zend\Permissions\Acl\Acl $acl

Returns

self

getAcl()

getAcl() : \Zend\Permissions\Acl\Acl

Gets the acl instance.

Returns

\Zend\Permissions\Acl\Acl

setPrivilege()

setPrivilege(string $privilege) : self

Sets the privilege name.

Parameters

string $privilege

Returns

self

getPrivilege()

getPrivilege() : string

Gets the privilege name.

Returns

string

setResource()

setResource(\Zend\Permissions\Acl\Resource\ResourceInterface $resource) : self

Sets the resource.

Parameters

\Zend\Permissions\Acl\Resource\ResourceInterface $resource

Returns

self

getResource()

getResource() : \Zend\Permissions\Acl\Resource\ResourceInterface

Gets the resource.

Returns

\Zend\Permissions\Acl\Resource\ResourceInterface

setRole()

setRole(\Zend\Permissions\Acl\Role\RoleInterface $role) : self

Sets the role.

Parameters

\Zend\Permissions\Acl\Role\RoleInterface $role

Returns

self

getRole()

getRole() : \Zend\Permissions\Acl\Role\RoleInterface

Gets the role.

Returns

\Zend\Permissions\Acl\Role\RoleInterface