Abstract aggregate listener

 Methods

Attach one or more listeners

attach(\Zend\EventManager\EventManagerInterface $events, $priority) : void

Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.

Parameters

$priority

Detach all previously attached listeners

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

inherited_from \Zend\EventManager\AbstractListenerAggregate::detach()
inherited_from \Zend\Cache\Storage\Plugin\AbstractPlugin::detach()

Parameters

Get all pattern options

getOptions() : \Zend\Cache\Storage\Plugin\PluginOptions
Inherited

inherited_from \Zend\Cache\Storage\Plugin\AbstractPlugin::getOptions()

Returns

Reset ignore_user_abort if it's activated and if it's the same target who activated it.

onAfter(\Zend\Cache\Storage\Event $event) : void

If exit_on_abort is enabled and the connection has been aborted exit the script.

Parameters

Activate ignore_user_abort if not already done and save the target who activated it.

onBefore(\Zend\Cache\Storage\Event $event) : void

Parameters

Set pattern options

setOptions(\Zend\Cache\Storage\Plugin\PluginOptions $options) : \Zend\Cache\Storage\Plugin\AbstractPlugin
Inherited

inherited_from \Zend\Cache\Storage\Plugin\AbstractPlugin::setOptions()

Parameters

Returns

 Properties

 

The storage who activated ignore_user_abort.

$activatedTarget : null | \Zend\Cache\Storage\StorageInterface

 

$listeners

$listeners : \Zend\Stdlib\CallbackHandler[]
Inherited

inherited_from \Zend\EventManager\AbstractListenerAggregate::$$listeners
inherited_from \Zend\Cache\Storage\Plugin\AbstractPlugin::$$listeners
 

$options

$options : \Zend\Cache\Storage\Plugin\PluginOptions
Inherited

inherited_from \Zend\Cache\Storage\Plugin\AbstractPlugin::$$options