IgnoreUserAbort
extends AbstractPlugin
in package
Abstract aggregate listener
Table of Contents
- $activatedTarget : null|StorageInterface
- The storage who activated ignore_user_abort.
- $listeners : array<string|int, callable>
- $options : PluginOptions
- attach() : mixed
- {@inheritDoc}
- detach() : void
- Detach all previously attached listeners
- getOptions() : PluginOptions
- Get all pattern options
- onAfter() : void
- Reset ignore_user_abort if it's activated and if it's the same target who activated it.
- onBefore() : void
- Activate ignore_user_abort if not already done and save the target who activated it.
- setOptions() : AbstractPlugin
- Set pattern options
Properties
$activatedTarget
The storage who activated ignore_user_abort.
protected
null|StorageInterface
$activatedTarget
= null
$listeners
protected
array<string|int, callable>
$listeners
= []
$options
protected
PluginOptions
$options
Methods
attach()
{@inheritDoc}
public
attach(EventManagerInterface $events[, mixed $priority = 1 ]) : mixed
Parameters
- $events : EventManagerInterface
- $priority : mixed = 1
Return values
mixed —detach()
Detach all previously attached listeners
public
detach(EventManagerInterface $events) : void
Parameters
- $events : EventManagerInterface
Return values
void —getOptions()
Get all pattern options
public
getOptions() : PluginOptions
Return values
PluginOptions —onAfter()
Reset ignore_user_abort if it's activated and if it's the same target who activated it.
public
onAfter(Event $event) : void
If exit_on_abort is enabled and the connection has been aborted exit the script.
Parameters
- $event : Event
Return values
void —onBefore()
Activate ignore_user_abort if not already done and save the target who activated it.
public
onBefore(Event $event) : void
Parameters
- $event : Event
Return values
void —setOptions()
Set pattern options
public
setOptions(PluginOptions $options) : AbstractPlugin
Parameters
- $options : PluginOptions
Return values
AbstractPlugin —Provides a fluent interface