PHP 인터페이스 Swift_Transport_EsmtpHandler, Halite

저자: Chris Corbyn
파일 보기 프로젝트 열기: HaliteChallenge/Halite

공개 메소드들

메소드 설명
afterEhlo ( Swift_Transport_SmtpAgent $agent ) Runs immediately after a EHLO has been issued.
exposeMixinMethods ( ) : string[] Returns an array of method names which are exposed to the Esmtp class.
getHandledKeyword ( ) : boolean Get the name of the ESMTP extension this handles.
getMailParams ( ) : string[] Get params which are appended to MAIL FROM:<>.
getPriorityOver ( string $esmtpKeyword ) : integer Returns +1, -1 or 0 according to the rules for usort().
getRcptParams ( ) : string[] Get params which are appended to RCPT TO:<>.
onCommand ( Swift_Transport_SmtpAgent $agent, string $command, int[] $codes = [], string[] &$failedRecipients = null, boolean &$stop = false ) Runs when a command is due to be sent.
resetState ( ) Tells this handler to clear any buffers and reset its state.
setKeywordParams ( array $parameters ) Set the parameters which the EHLO greeting indicated.

메소드 상세

afterEhlo() 공개 메소드

Runs immediately after a EHLO has been issued.
public afterEhlo ( Swift_Transport_SmtpAgent $agent )
$agent Swift_Transport_SmtpAgent to read/write

exposeMixinMethods() 공개 메소드

Returns an array of method names which are exposed to the Esmtp class.
public exposeMixinMethods ( ) : string[]
리턴 string[]

getHandledKeyword() 공개 메소드

Get the name of the ESMTP extension this handles.
public getHandledKeyword ( ) : boolean
리턴 boolean

getMailParams() 공개 메소드

Get params which are appended to MAIL FROM:<>.
public getMailParams ( ) : string[]
리턴 string[]

getPriorityOver() 공개 메소드

This method is called to ensure extensions can be execute in an appropriate order.
public getPriorityOver ( string $esmtpKeyword ) : integer
$esmtpKeyword string to compare with
리턴 integer

getRcptParams() 공개 메소드

Get params which are appended to RCPT TO:<>.
public getRcptParams ( ) : string[]
리턴 string[]

onCommand() 공개 메소드

Runs when a command is due to be sent.
public onCommand ( Swift_Transport_SmtpAgent $agent, string $command, int[] $codes = [], string[] &$failedRecipients = null, boolean &$stop = false )
$agent Swift_Transport_SmtpAgent to read/write
$command string to send
$codes int[] expected in response
$failedRecipients string[] to collect failures
$stop boolean to be set true by-reference if the command is now sent

resetState() 공개 메소드

Tells this handler to clear any buffers and reset its state.
public resetState ( )

setKeywordParams() 공개 메소드

Set the parameters which the EHLO greeting indicated.
public setKeywordParams ( array $parameters )
$parameters array