PHP 클래스 Swift_Plugins_RedirectingPlugin, Halite

저자: Fabien Potencier
상속: implements Swift_Events_SendListener
파일 보기 프로젝트 열기: HaliteChallenge/Halite 1 사용 예제들

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

Create a new RedirectingPlugin.
public __construct ( mixed $recipient, array $whitelist = [] )
$recipient mixed
$whitelist array

_isWhitelisted() 보호된 메소드

Matches address against whitelist of regular expressions.
protected _isWhitelisted ( $recipient ) : boolean
$recipient
리턴 boolean

beforeSendPerformed() 공개 메소드

Invoked immediately before the Message is sent.
public beforeSendPerformed ( Swift_Events_SendEvent $evt )
$evt Swift_Events_SendEvent

getRecipient() 공개 메소드

Get the recipient of all messages.
public getRecipient ( ) : mixed
리턴 mixed

getWhitelist() 공개 메소드

Get the whitelist.
public getWhitelist ( ) : array
리턴 array

sendPerformed() 공개 메소드

Invoked immediately after the Message is sent.
public sendPerformed ( Swift_Events_SendEvent $evt )
$evt Swift_Events_SendEvent

setRecipient() 공개 메소드

Set the recipient of all messages.
public setRecipient ( mixed $recipient )
$recipient mixed

setWhitelist() 공개 메소드

Set a list of regular expressions to whitelist certain recipients.
public setWhitelist ( array $whitelist )
$whitelist array