PHP 클래스 Swift_Plugins_PopBeforeSmtpPlugin, Halite

저자: Chris Corbyn
상속: implements Swift_Events_TransportChangeListener, implements Swift_Plugins_Pop_Pop3Connection
파일 보기 프로젝트 열기: HaliteChallenge/Halite

공개 메소드들

메소드 설명
__construct ( string $host, integer $port = 110, string $crypto = null ) Create a new PopBeforeSmtpPlugin for $host and $port.
beforeTransportStarted ( Swift_Events_TransportChangeEvent $evt ) Invoked just before a Transport is started.
beforeTransportStopped ( Swift_Events_TransportChangeEvent $evt ) Not used.
bindSmtp ( Swift_Transport $smtp ) Bind this plugin to a specific SMTP transport instance.
connect ( ) Connect to the POP3 host and authenticate.
disconnect ( ) Disconnect from the POP3 host.
newInstance ( string $host, integer $port = 110, string $crypto = null ) : Swift_Plugins_PopBeforeSmtpPlugin Create a new PopBeforeSmtpPlugin for $host and $port.
setConnection ( Swift_Plugins_Pop_Pop3Connection $connection ) : Swift_Plugins_PopBeforeSmtpPlugin Set a Pop3Connection to delegate to instead of connecting directly.
setPassword ( string $password ) : Swift_Plugins_PopBeforeSmtpPlugin Set the password to use when connecting (if needed).
setTimeout ( integer $timeout ) : Swift_Plugins_PopBeforeSmtpPlugin Set the connection timeout in seconds (default 10).
setUsername ( string $username ) : Swift_Plugins_PopBeforeSmtpPlugin Set the username to use when connecting (if needed).
transportStarted ( Swift_Events_TransportChangeEvent $evt ) Not used.
transportStopped ( Swift_Events_TransportChangeEvent $evt ) Not used.

비공개 메소드들

메소드 설명
_assertOk ( $response )
_command ( $command )
_getHostString ( )

메소드 상세

__construct() 공개 메소드

Create a new PopBeforeSmtpPlugin for $host and $port.
public __construct ( string $host, integer $port = 110, string $crypto = null )
$host string
$port integer
$crypto string as "tls" or "ssl"

beforeTransportStarted() 공개 메소드

Invoked just before a Transport is started.
public beforeTransportStarted ( Swift_Events_TransportChangeEvent $evt )
$evt Swift_Events_TransportChangeEvent

beforeTransportStopped() 공개 메소드

Not used.
public beforeTransportStopped ( Swift_Events_TransportChangeEvent $evt )
$evt Swift_Events_TransportChangeEvent

bindSmtp() 공개 메소드

Bind this plugin to a specific SMTP transport instance.
public bindSmtp ( Swift_Transport $smtp )
$smtp Swift_Transport

connect() 공개 메소드

Connect to the POP3 host and authenticate.
public connect ( )

disconnect() 공개 메소드

Disconnect from the POP3 host.
public disconnect ( )

newInstance() 공개 정적인 메소드

Create a new PopBeforeSmtpPlugin for $host and $port.
public static newInstance ( string $host, integer $port = 110, string $crypto = null ) : Swift_Plugins_PopBeforeSmtpPlugin
$host string
$port integer
$crypto string as "tls" or "ssl"
리턴 Swift_Plugins_PopBeforeSmtpPlugin

setConnection() 공개 메소드

Set a Pop3Connection to delegate to instead of connecting directly.
public setConnection ( Swift_Plugins_Pop_Pop3Connection $connection ) : Swift_Plugins_PopBeforeSmtpPlugin
$connection Swift_Plugins_Pop_Pop3Connection
리턴 Swift_Plugins_PopBeforeSmtpPlugin

setPassword() 공개 메소드

Set the password to use when connecting (if needed).
public setPassword ( string $password ) : Swift_Plugins_PopBeforeSmtpPlugin
$password string
리턴 Swift_Plugins_PopBeforeSmtpPlugin

setTimeout() 공개 메소드

Set the connection timeout in seconds (default 10).
public setTimeout ( integer $timeout ) : Swift_Plugins_PopBeforeSmtpPlugin
$timeout integer
리턴 Swift_Plugins_PopBeforeSmtpPlugin

setUsername() 공개 메소드

Set the username to use when connecting (if needed).
public setUsername ( string $username ) : Swift_Plugins_PopBeforeSmtpPlugin
$username string
리턴 Swift_Plugins_PopBeforeSmtpPlugin

transportStarted() 공개 메소드

Not used.
public transportStarted ( Swift_Events_TransportChangeEvent $evt )
$evt Swift_Events_TransportChangeEvent

transportStopped() 공개 메소드

Not used.
public transportStopped ( Swift_Events_TransportChangeEvent $evt )
$evt Swift_Events_TransportChangeEvent