Class
AclListener
Summary
Fully Qualified Name:
|
Zend\View\Helper\Navigation\Listener\AclListener |
Description
Default Access Control Listener
Methods
Name |
Description |
Defined By |
accept()
|
Determines whether a page should be accepted by ACL when iterating |
AclListener
|
Method Details
accept()
Determines whether a page should be accepted by ACL when iterating
- If helper has no ACL, page is accepted
- If page has a resource or privilege defined, page is accepted if the
ACL allows access to it using the helper's role
- If page has no resource or privilege, page is accepted
- If helper has ACL and role:
- Page is accepted if it has no resource or privilege.
- Page is accepted if ACL allows page's resource or privilege.
Parameter Name |
Type |
Description |
$event |
\Event |
|
Returns: bool