PHP Class Swift_MemorySpool, Halite

Author: Fabien Potencier
Inheritance: implements Swift_Spool
Afficher le fichier Open project: HaliteChallenge/Halite Class Usage Examples

Protected Properties

Свойство Type Description
$messages

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 Transport mechanism has started.
queueMessage ( Swift_Mime_Message $message ) : boolean Stores a message in the queue.
setFlushRetries ( integer $retries )
start ( ) Starts this Transport mechanism.
stop ( ) Stops this Transport 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 Transport mechanism has started.
public isStarted ( ) : boolean
Résultat boolean

queueMessage() public méthode

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

setFlushRetries() public méthode

public setFlushRetries ( integer $retries )
$retries integer

start() public méthode

Starts this Transport mechanism.
public start ( )

stop() public méthode

Stops this Transport mechanism.
public stop ( )

Property Details

$messages protected_oe property

protected $messages