Méthode | Description | |
---|---|---|
__construct ( string $path ) | Create a new FileSpool. | |
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. | |
recover ( integer $timeout = 900 ) | Execute a recovery if for any reason a process is sending for too long. | |
setRetryLimit ( integer $limit ) | Allow to manage the enqueuing retry limit. | |
start ( ) | Starts this Spool mechanism. | |
stop ( ) | Stops this Spool mechanism. |
Méthode | Description | |
---|---|---|
getRandomString ( integer $count ) : string | Returns a random string needed to generate a fileName for the queue. |
public __construct ( string $path ) | ||
$path | string |
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 e-mail's |
protected getRandomString ( integer $count ) : string | ||
$count | integer | |
Résultat | string |
public queueMessage ( Swift_Mime_Message $message ) : boolean | ||
$message | Swift_Mime_Message | The message to store |
Résultat | boolean |
public setRetryLimit ( integer $limit ) | ||
$limit | integer |