XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_Mailer_ArrayRecipientIterator Class Reference
Inheritance diagram for Swift_Mailer_ArrayRecipientIterator:
Inheritance graph

Public Member Functions

 __construct (array $recipients)
 
 hasNext ()
 
 nextRecipient ()
 

Private Attributes

 $_recipients = array()
 

Detailed Description

Definition at line 19 of file ArrayRecipientIterator.php.

Constructor & Destructor Documentation

Swift_Mailer_ArrayRecipientIterator::__construct ( array  $recipients)

Create a new ArrayRecipientIterator from $recipients.

Parameters
array$recipients

Definition at line 34 of file ArrayRecipientIterator.php.

Member Function Documentation

Swift_Mailer_ArrayRecipientIterator::hasNext ( )

Returns true only if there are more recipients to send to.

Returns
boolean

Implements Swift_Mailer_RecipientIterator.

Definition at line 43 of file ArrayRecipientIterator.php.

Swift_Mailer_ArrayRecipientIterator::nextRecipient ( )

Returns an array where the keys are the addresses of recipients and the values are the names. e.g. ('foo' => 'Foo') or ('foo' => NULL)

Returns
array

Implements Swift_Mailer_RecipientIterator.

Definition at line 54 of file ArrayRecipientIterator.php.

Member Data Documentation

Swift_Mailer_ArrayRecipientIterator::$_recipients = array()
private

Definition at line 28 of file ArrayRecipientIterator.php.


The documentation for this class was generated from the following file: