Class Swift_Transport_NullTransport
Inheritance | Swift_Transport_NullTransport |
---|---|
Implements | Swift_Transport |
Subclasses | Swift_NullTransport |
Pretends messages have been sent, but just ignores them.
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Constructor. | Swift_Transport_NullTransport |
isStarted() | Tests if this Transport mechanism has started. | Swift_Transport_NullTransport |
registerPlugin() | Register a plugin. | Swift_Transport_NullTransport |
send() | Sends the given message. | Swift_Transport_NullTransport |
start() | Starts this Transport mechanism. | Swift_Transport_NullTransport |
stop() | Stops this Transport mechanism. | Swift_Transport_NullTransport |
Method Details
Constructor.
public void __construct ( Swift_Events_EventDispatcher $eventDispatcher ) | ||
$eventDispatcher |
Tests if this Transport mechanism has started.
public bool isStarted ( ) |
Register a plugin.
public void registerPlugin ( Swift_Events_EventListener $plugin ) | ||
$plugin | Swift_Events_EventListener |
Sends the given message.
public int send ( Swift_Mime_Message $message, <b>&</b>$failedRecipients = null ) | ||
$message | Swift_Mime_Message | |
$failedRecipients | string[] | An array of failures by-reference |
return | int | The number of sent emails |
---|
Starts this Transport mechanism.
public void start ( ) |
Stops this Transport mechanism.
public void stop ( ) |