TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
Swift_MemorySpool Class Reference
Inheritance diagram for Swift_MemorySpool:
Swift_Spool

Public Member Functions

 isStarted ()
 
 start ()
 
 stop ()
 
 queueMessage (Swift_Mime_Message $message)
 
 flushQueue (Swift_Transport $transport, &$failedRecipients=null)
 

Protected Attributes

 $messages = array()
 

Detailed Description

Stores Messages in memory.

Author
Fabien Potencier

Definition at line 16 of file MemorySpool.php.

Member Function Documentation

flushQueue ( Swift_Transport  $transport,
$failedRecipients = null 
)

Sends messages using the given transport instance.

Parameters
Swift_Transport$transportA transport instance
string[]$failedRecipients An array of failures by-reference
Returns
int The number of sent emails

Implements Swift_Spool.

Definition at line 67 of file MemorySpool.php.

References Swift_Transport\isStarted(), Swift_Transport\send(), and Swift_Transport\start().

isStarted ( )

Tests if this Transport mechanism has started.

Returns
bool

Implements Swift_Spool.

Definition at line 25 of file MemorySpool.php.

queueMessage ( Swift_Mime_Message  $message)

Stores a message in the queue.

Parameters
Swift_Mime_Message$messageThe message to store
Returns
bool Whether the operation has succeeded

Implements Swift_Spool.

Definition at line 51 of file MemorySpool.php.

start ( )

Starts this Transport mechanism.

Implements Swift_Spool.

Definition at line 33 of file MemorySpool.php.

stop ( )

Stops this Transport mechanism.

Implements Swift_Spool.

Definition at line 40 of file MemorySpool.php.

Member Data Documentation

$messages = array()
protected

Definition at line 18 of file MemorySpool.php.