메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
_isWhitelisted ( $recipient ) : boolean | Matches address against whitelist of regular expressions. |
메소드 | 설명 | |
---|---|---|
_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 | ||
리턴 | boolean |
public beforeSendPerformed ( Swift_Events_SendEvent $evt ) | ||
$evt | Swift_Events_SendEvent |
public sendPerformed ( Swift_Events_SendEvent $evt ) | ||
$evt | Swift_Events_SendEvent |
public setRecipient ( mixed $recipient ) | ||
$recipient | mixed |
public setWhitelist ( array $whitelist ) | ||
$whitelist | array |