Zend Framework  3.0
Static Public Member Functions | List of all members
AclListener Class Reference

Default Access Control Listener. More...

Static Public Member Functions

static accept (Event $event)
 Determines whether a page should be accepted by ACL when iterating.
 

Detailed Description

Default Access Control Listener.

Member Function Documentation

static accept ( Event  $event)
static

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.
Parameters
Event$event
Returns
bool