PHP Interface Swift_Spool, Halite

Author: Fabien Potencier
Afficher le fichier Open project: HaliteChallenge/Halite

Méthodes publiques

Méthode Description
flushQueue ( Swift_Transport $transport, string[] &$failedRecipients = null ) : integer Sends messages using the given transport instance.
isStarted ( ) : boolean Tests if this Spool mechanism has started.
queueMessage ( Swift_Mime_Message $message ) : boolean Queues a message.
start ( ) Starts this Spool mechanism.
stop ( ) Stops this Spool mechanism.

Method Details

flushQueue() public méthode

Sends messages using the given transport instance.
public flushQueue ( Swift_Transport $transport, string[] &$failedRecipients = null ) : integer
$transport Swift_Transport A transport instance
$failedRecipients string[] An array of failures by-reference
Résultat integer The number of sent emails

isStarted() public méthode

Tests if this Spool mechanism has started.
public isStarted ( ) : boolean
Résultat boolean

queueMessage() public méthode

Queues a message.
public queueMessage ( Swift_Mime_Message $message ) : boolean
$message Swift_Mime_Message The message to store
Résultat boolean Whether the operation has succeeded

start() public méthode

Starts this Spool mechanism.
public start ( )

stop() public méthode

Stops this Spool mechanism.
public stop ( )