XOOPS RMCommon Utilities
2.1.8.91RC
|
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) | |
Definition at line 20 of file EventDispatcher.php.
Swift_Events_EventDispatcher::bindEventListener | ( | Swift_Events_EventListener | $listener | ) |
Bind an event listener to this dispatcher.
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.
Swift_Transport | $source | |
string | $command | That will be executed |
array | $successCodes | That are needed |
Implemented in Swift_Events_SimpleEventDispatcher.
Swift_Events_EventDispatcher::createResponseEvent | ( | Swift_Transport | $source, |
$response, | |||
$valid | |||
) |
Create a new ResponseEvent for $source and $response.
Swift_Transport | $source | |
string | $response | |
boolean | $valid | If the response is valid |
Implemented in Swift_Events_SimpleEventDispatcher.
Swift_Events_EventDispatcher::createSendEvent | ( | Swift_Transport | $source, |
Swift_Mime_Message | $message | ||
) |
Create a new SendEvent for $source and $message.
Swift_Transport | $source | |
Swift_Mime_Message |
Implemented in Swift_Events_SimpleEventDispatcher.
Swift_Events_EventDispatcher::createTransportChangeEvent | ( | Swift_Transport | $source | ) |
Create a new TransportChangeEvent for $source.
Swift_Transport | $source |
Implemented in Swift_Events_SimpleEventDispatcher.
Swift_Events_EventDispatcher::createTransportExceptionEvent | ( | Swift_Transport | $source, |
Swift_TransportException | $ex | ||
) |
Create a new TransportExceptionEvent for $source.
Swift_Transport | $source | |
Swift_TransportException | $ex |
Implemented in Swift_Events_SimpleEventDispatcher.
Swift_Events_EventDispatcher::dispatchEvent | ( | Swift_Events_EventObject | $evt, |
$target | |||
) |
Dispatch the given Event to all suitable listeners.
Swift_Events_EventObject | $evt | |
string | $target | method |
Implemented in Swift_Events_SimpleEventDispatcher.