XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_Events_EventDispatcher Interface Reference
Inheritance diagram for Swift_Events_EventDispatcher:
Inheritance graph

Public Member Functions

 bindEventListener (Swift_Events_EventListener $listener)
 
 createCommandEvent (Swift_Transport $source, $command, $successCodes=array())
 
 createResponseEvent (Swift_Transport $source, $response, $valid)
 
 createSendEvent (Swift_Transport $source, Swift_Mime_Message $message)
 
 createTransportChangeEvent (Swift_Transport $source)
 
 createTransportExceptionEvent (Swift_Transport $source, Swift_TransportException $ex)
 
 dispatchEvent (Swift_Events_EventObject $evt, $target)
 

Detailed Description

Definition at line 20 of file EventDispatcher.php.

Member Function Documentation

Swift_Events_EventDispatcher::bindEventListener ( Swift_Events_EventListener  $listener)

Bind an event listener to this dispatcher.

Parameters
Swift_Events_EventListener$listener

Implemented in Swift_Events_SimpleEventDispatcher.

Swift_Events_EventDispatcher::createCommandEvent ( Swift_Transport  $source,
  $command,
  $successCodes = array() 
)

Create a new CommandEvent for $source and $command.

Parameters
Swift_Transport$source
string$commandThat will be executed
array$successCodesThat are needed
Returns
Swift_Events_CommandEvent

Implemented in Swift_Events_SimpleEventDispatcher.

Swift_Events_EventDispatcher::createResponseEvent ( Swift_Transport  $source,
  $response,
  $valid 
)

Create a new ResponseEvent for $source and $response.

Parameters
Swift_Transport$source
string$response
boolean$validIf the response is valid
Returns
Swift_Events_ResponseEvent

Implemented in Swift_Events_SimpleEventDispatcher.

Swift_Events_EventDispatcher::createSendEvent ( Swift_Transport  $source,
Swift_Mime_Message  $message 
)

Create a new SendEvent for $source and $message.

Parameters
Swift_Transport$source
Swift_Mime_Message
Returns
Swift_Events_SendEvent

Implemented in Swift_Events_SimpleEventDispatcher.

Swift_Events_EventDispatcher::createTransportChangeEvent ( Swift_Transport  $source)

Create a new TransportChangeEvent for $source.

Parameters
Swift_Transport$source
Returns
Swift_Events_TransportChangeEvent

Implemented in Swift_Events_SimpleEventDispatcher.

Swift_Events_EventDispatcher::createTransportExceptionEvent ( Swift_Transport  $source,
Swift_TransportException  $ex 
)

Create a new TransportExceptionEvent for $source.

Parameters
Swift_Transport$source
Swift_TransportException$ex
Returns
Swift_Events_TransportExceptionEvent

Implemented in Swift_Events_SimpleEventDispatcher.

Swift_Events_EventDispatcher::dispatchEvent ( Swift_Events_EventObject  $evt,
  $target 
)

Dispatch the given Event to all suitable listeners.

Parameters
Swift_Events_EventObject$evt
string$targetmethod

Implemented in Swift_Events_SimpleEventDispatcher.


The documentation for this interface was generated from the following file: