Méthode | Description | |
---|---|---|
__construct ( mixed $recipient, array $whitelist = [] ) | Create a new RedirectingPlugin. | |
beforeSendPerformed ( Swift_Events_SendEvent $evt ) | Invoked immediately before the Message is sent. | |
getRecipient ( ) : mixed | Get the recipient of all messages. | |
getWhitelist ( ) : array | Get the whitelist. | |
sendPerformed ( Swift_Events_SendEvent $evt ) | Invoked immediately after the Message is sent. | |
setRecipient ( mixed $recipient ) | Set the recipient of all messages. | |
setWhitelist ( array $whitelist ) | Set a list of regular expressions to whitelist certain recipients. |
Méthode | Description | |
---|---|---|
_isWhitelisted ( $recipient ) : boolean | Matches address against whitelist of regular expressions. |
Méthode | Description | |
---|---|---|
_filterHeaderSet ( Swift_Mime_HeaderSet $headerSet, string $type ) | Filter header set against a whitelist of regular expressions. | |
_filterNameAddresses ( array $recipients ) : array | Filtered list of addresses => name pairs. | |
_restoreMessage ( Swift_Mime_Message $message ) |
public __construct ( mixed $recipient, array $whitelist = [] ) | ||
$recipient | mixed | |
$whitelist | array |
protected _isWhitelisted ( $recipient ) : boolean | ||
$recipient | ||
Résultat | boolean |
public beforeSendPerformed ( Swift_Events_SendEvent $evt ) | ||
$evt | Swift_Events_SendEvent |
public getRecipient ( ) : mixed | ||
Résultat | mixed |
public sendPerformed ( Swift_Events_SendEvent $evt ) | ||
$evt | Swift_Events_SendEvent |
public setRecipient ( mixed $recipient ) | ||
$recipient | mixed |
public setWhitelist ( array $whitelist ) | ||
$whitelist | array |