TYPO3
7.6
|
Public Member Functions | |
__construct () | |
createSendEvent (Swift_Transport $source, Swift_Mime_Message $message) | |
createCommandEvent (Swift_Transport $source, $command, $successCodes=array()) | |
createResponseEvent (Swift_Transport $source, $response, $valid) | |
createTransportChangeEvent (Swift_Transport $source) | |
createTransportExceptionEvent (Swift_Transport $source, Swift_TransportException $ex) | |
bindEventListener (Swift_Events_EventListener $listener) | |
dispatchEvent (Swift_Events_EventObject $evt, $target) | |
Private Member Functions | |
_prepareBubbleQueue (Swift_Events_EventObject $evt) | |
_bubble (Swift_Events_EventObject $evt, $target) | |
Private Attributes | |
$_eventMap = array() | |
$_listeners = array() | |
$_bubbleQueue = array() | |
The EventDispatcher which handles the event dispatching layer.
Definition at line 16 of file SimpleEventDispatcher.php.
__construct | ( | ) |
Create a new EventDispatcher.
Definition at line 30 of file SimpleEventDispatcher.php.
|
private |
Bubble $evt up the stack calling $target() on each listener
Definition at line 149 of file SimpleEventDispatcher.php.
References Swift_Events_EventObject\bubbleCancelled().
Referenced by dispatchEvent().
|
private |
Queue listeners on a stack ready for $evt to be bubbled up it
Definition at line 136 of file SimpleEventDispatcher.php.
Referenced by dispatchEvent().
bindEventListener | ( | Swift_Events_EventListener | $listener | ) |
Bind an event listener to this dispatcher.
Swift_Events_EventListener | $listener |
Implements Swift_Events_EventDispatcher.
Definition at line 112 of file SimpleEventDispatcher.php.
createCommandEvent | ( | Swift_Transport | $source, |
$command, | |||
$successCodes = array() |
|||
) |
Create a new CommandEvent for $source and $command.
Swift_Transport | $source | |
string | $command | That will be executed |
array | $successCodes | That are needed |
Implements Swift_Events_EventDispatcher.
Definition at line 63 of file SimpleEventDispatcher.php.
createResponseEvent | ( | Swift_Transport | $source, |
$response, | |||
$valid | |||
) |
Create a new ResponseEvent for $source and $response.
Swift_Transport | $source | |
string | $response | |
bool | $valid | If the response is valid |
Implements Swift_Events_EventDispatcher.
Definition at line 77 of file SimpleEventDispatcher.php.
References $response.
createSendEvent | ( | Swift_Transport | $source, |
Swift_Mime_Message | $message | ||
) |
Create a new SendEvent for $source and $message.
Swift_Transport | $source | |
Swift_Mime_Message |
Implements Swift_Events_EventDispatcher.
Definition at line 49 of file SimpleEventDispatcher.php.
createTransportChangeEvent | ( | Swift_Transport | $source | ) |
Create a new TransportChangeEvent for $source.
Swift_Transport | $source |
Implements Swift_Events_EventDispatcher.
Definition at line 89 of file SimpleEventDispatcher.php.
createTransportExceptionEvent | ( | Swift_Transport | $source, |
Swift_TransportException | $ex | ||
) |
Create a new TransportExceptionEvent for $source.
Swift_Transport | $source | |
Swift_TransportException | $ex |
Implements Swift_Events_EventDispatcher.
Definition at line 102 of file SimpleEventDispatcher.php.
dispatchEvent | ( | Swift_Events_EventObject | $evt, |
$target | |||
) |
Dispatch the given Event to all suitable listeners.
Swift_Events_EventObject | $evt | |
string | $target | method |
Implements Swift_Events_EventDispatcher.
Definition at line 129 of file SimpleEventDispatcher.php.
References _bubble(), and _prepareBubbleQueue().
|
private |
Listeners queued to have an Event bubbled up the stack to them
Definition at line 25 of file SimpleEventDispatcher.php.
|
private |
A map of event types to their associated listener types
Definition at line 19 of file SimpleEventDispatcher.php.
|
private |
Event listeners bound to this dispatcher
Definition at line 22 of file SimpleEventDispatcher.php.