PHP Класс Swift_Plugins_PopBeforeSmtpPlugin, Halite

Автор: Chris Corbyn
Наследование: implements Swift_Events_TransportChangeListener, implements Swift_Plugins_Pop_Pop3Connection
Показать файл Открыть проект

Открытые методы

Метод Описание
__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