Documentation

Swift_Events_SimpleEventDispatcher
in package
implements Swift_Events_EventDispatcher

The EventDispatcher which handles the event dispatching layer.

Tags
author

Chris Corbyn

Interfaces, Classes and Traits

Swift_Events_EventDispatcher
Interface for the EventDispatcher which handles the event dispatching layer.

Table of Contents

$bubbleQueue  : mixed
Listeners queued to have an Event bubbled up the stack to them
$eventMap  : mixed
A map of event types to their associated listener types
$listeners  : mixed
Event listeners bound to this dispatcher
__construct()  : mixed
Create a new EventDispatcher.
bindEventListener()  : mixed
Bind an event listener to this dispatcher.
createCommandEvent()  : Swift_Events_CommandEvent
Create a new CommandEvent for $source and $command.
createResponseEvent()  : Swift_Events_ResponseEvent
Create a new ResponseEvent for $source and $response.
createSendEvent()  : Swift_Events_SendEvent
Create a new SendEvent for $source and $message.
createTransportChangeEvent()  : Swift_Events_TransportChangeEvent
Create a new TransportChangeEvent for $source.
createTransportExceptionEvent()  : Swift_Events_TransportExceptionEvent
Create a new TransportExceptionEvent for $source.
dispatchEvent()  : mixed
Dispatch the given Event to all suitable listeners.
bubble()  : mixed
Bubble $evt up the stack calling $target() on each listener
prepareBubbleQueue()  : mixed
Queue listeners on a stack ready for $evt to be bubbled up it

Properties

$bubbleQueue

Listeners queued to have an Event bubbled up the stack to them

private mixed $bubbleQueue = []

$eventMap

A map of event types to their associated listener types

private mixed $eventMap = []

Methods

__construct()

Create a new EventDispatcher.

public __construct() : mixed
Return values
mixed

Search results