\Acl\ListenerCheckPermissionsListener

Summary

Methods
Properties
Constants
__construct()
getExceptionClass()
getAcl()
getUser()
attach()
detach()
onRoute()
onDispatch()
No public properties found
No constants found
checkAcl()
findResourceId()
$user
$acl
$exceptionMap
$listeners
N/A
No private methods found
No private properties found
N/A

Properties

$user

$user

$acl

$acl

$exceptionMap

$exceptionMap

$listeners

$listeners : \Zend\Stdlib\CallbackHandler[]

Type

\Zend\Stdlib\CallbackHandler[]

Methods

__construct()

__construct(\Zend\Permissions\Acl\AclInterface $acl, \Auth\Entity\UserInterface $user,  $exceptionMap)

Parameters

\Zend\Permissions\Acl\AclInterface $acl
\Auth\Entity\UserInterface $user
$exceptionMap

getExceptionClass()

getExceptionClass( $resourceId)

Parameters

$resourceId

getAcl()

getAcl()

getUser()

getUser()

attach()

attach(\Zend\EventManager\EventManagerInterface $events)

Attach to an event manager

Parameters

\Zend\EventManager\EventManagerInterface $events

detach()

detach(\Zend\EventManager\EventManagerInterface $events) : void

Detach all our listeners from the event manager

Parameters

\Zend\EventManager\EventManagerInterface $events

onRoute()

onRoute(\Zend\Mvc\MvcEvent $event) : void

test acl on route

Parameters

\Zend\Mvc\MvcEvent $event

onDispatch()

onDispatch(\Zend\Mvc\MvcEvent $event)

Parameters

\Zend\Mvc\MvcEvent $event

checkAcl()

checkAcl(\Zend\Mvc\MvcEvent $event,  $resourceId,  $privilege)

Parameters

\Zend\Mvc\MvcEvent $event
$resourceId
$privilege

findResourceId()

findResourceId( $resourceId)

Parameters

$resourceId