Property | Type | Description | |
---|---|---|---|
$controllers | |||
$event | |||
$listenersToDetach | array[] | null | ||
$maxNestedForwards | integer | ||
$numNestedForwards | integer |
Method | Description | |
---|---|---|
__construct ( |
||
dispatch ( string $name, array $params = null ) : mixed | Dispatch another controller | |
getListenersToDetach ( ) : array | Get information on listeners that need to be detached before dispatching. | |
setListenersToDetach ( array $listeners ) : self | Set information on listeners that need to be detached before dispatching. | |
setMaxNestedForwards ( integer $maxNestedForwards ) : self | Set maximum number of nested forwards allowed |
Method | Description | |
---|---|---|
detachProblemListeners ( Zend\EventManager\SharedEventManagerInterface $sharedEvents ) : array | Detach problem listeners specified by getListenersToDetach() and return an array of information that will allow them to be reattached. | |
getEvent ( ) : |
Get the event | |
reattachProblemListeners ( Zend\EventManager\SharedEventManagerInterface $sharedEvents, array $listeners ) : void | Reattach all problem listeners detached by detachProblemListeners(), if any. |
Method | Description | |
---|---|---|
detachSharedListener ( string | integer $id, callable | Zend\Stdlib\CallbackHandler $listener, Zend\EventManager\SharedEventManagerInterface $sharedEvents ) : void | Detach a shared listener by identifier. | |
getSharedListenersById ( string | integer $id, string $event, Zend\EventManager\SharedEventManagerInterface $sharedEvents ) : array | Traversable | Retrieve shared listeners for an event by identifier. |
public __construct ( |
||
$controllers |
protected detachProblemListeners ( Zend\EventManager\SharedEventManagerInterface $sharedEvents ) : array | ||
$sharedEvents | Zend\EventManager\SharedEventManagerInterface | Shared event manager |
return | array |
protected getEvent ( ) : |
||
return |
public getListenersToDetach ( ) : array | ||
return | array |
protected reattachProblemListeners ( Zend\EventManager\SharedEventManagerInterface $sharedEvents, array $listeners ) : void | ||
$sharedEvents | Zend\EventManager\SharedEventManagerInterface | Shared event manager |
$listeners | array | Output of detachProblemListeners() |
return | void |
public setListenersToDetach ( array $listeners ) : self | ||
$listeners | array | Listener information; see getListenersToDetach() for details on format. |
return | self |
public setMaxNestedForwards ( integer $maxNestedForwards ) : self | ||
$maxNestedForwards | integer | |
return | self |
protected ControllerManager,Zend\Mvc\Controller $controllers | ||
return |
protected array[]|null $listenersToDetach | ||
return | array[] | null |