Abstract aggregate listener

package Default
inherited_from \Zend\Cache\Storage\Plugin\AbstractPlugin

 Methods

{@inheritDoc}

attach(\Zend\EventManager\EventManagerInterface $events, $priority = 1

Parameters

$events

$priority

Detach all previously attached listeners

detach(\Zend\EventManager\EventManagerInterface $events) 
Inherited
inherited_from \Zend\EventManager\ListenerAggregateInterface::detach()

Parameters

$events

Get all pattern options

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

Returns

\Zend\Cache\Storage\Plugin\PluginOptions

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

$event

\Zend\Cache\Storage\Event

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

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

Parameters

$event

\Zend\Cache\Storage\Event

Set pattern options

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

Parameters

$options

\Zend\Cache\Storage\Plugin\PluginOptions

Returns

\Zend\Cache\Storage\Plugin\AbstractPlugin

 Properties

 

The storage who activated ignore_user_abort.

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

Default

null
 

$listeners

$listeners : array<mixed,\Zend\Stdlib\CallbackHandler>

Default

array()
 

$options

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

Default