PHP Class Swift_Transport_NullTransport, Halite

Author: Fabien Potencier
Inheritance: implements Swift_Transport
Mostra file Open project: HaliteChallenge/Halite Class Usage Examples

Public Methods

Method Description
__construct ( Swift_Events_EventDispatcher $eventDispatcher ) Constructor.
isStarted ( ) : boolean Tests if this Transport mechanism has started.
registerPlugin ( Swift_Events_EventListener $plugin ) Register a plugin.
send ( Swift_Mime_Message $message, string[] &$failedRecipients = null ) : integer Sends the given message.
start ( ) Starts this Transport mechanism.
stop ( ) Stops this Transport mechanism.

Method Details

__construct() public method

Constructor.
public __construct ( Swift_Events_EventDispatcher $eventDispatcher )
$eventDispatcher Swift_Events_EventDispatcher

isStarted() public method

Tests if this Transport mechanism has started.
public isStarted ( ) : boolean
return boolean

registerPlugin() public method

Register a plugin.
public registerPlugin ( Swift_Events_EventListener $plugin )
$plugin Swift_Events_EventListener

send() public method

Sends the given message.
public send ( Swift_Mime_Message $message, string[] &$failedRecipients = null ) : integer
$message Swift_Mime_Message
$failedRecipients string[] An array of failures by-reference
return integer The number of sent emails

start() public method

Starts this Transport mechanism.
public start ( )

stop() public method

Stops this Transport mechanism.
public stop ( )