PHP Class Swift_Mailer_ArrayRecipientIterator, Halite

Author: Chris Corbyn
Inheritance: implements Swift_Mailer_RecipientIterator
Afficher le fichier Open project: HaliteChallenge/Halite Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $recipients ) Create a new ArrayRecipientIterator from $recipients.
hasNext ( ) : boolean Returns true only if there are more recipients to send to.
nextRecipient ( ) : array Returns an array where the keys are the addresses of recipients and the values are the names. e.g. ('foo@bar' => 'Foo') or ('foo@bar' => NULL).

Method Details

__construct() public méthode

Create a new ArrayRecipientIterator from $recipients.
public __construct ( array $recipients )
$recipients array

hasNext() public méthode

Returns true only if there are more recipients to send to.
public hasNext ( ) : boolean
Résultat boolean

nextRecipient() public méthode

Returns an array where the keys are the addresses of recipients and the values are the names. e.g. ('foo@bar' => 'Foo') or ('foo@bar' => NULL).
public nextRecipient ( ) : array
Résultat array