PHP Class Swift_Plugins_PopBeforeSmtpPlugin, Halite

Author: Chris Corbyn
Inheritance: implements Swift_Events_TransportChangeListener, implements Swift_Plugins_Pop_Pop3Connection
Datei anzeigen Open project: HaliteChallenge/Halite

Public Methods

Method Description
__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.

Private Methods

Method Description
_assertOk ( $response )
_command ( $command )
_getHostString ( )

Method Details

__construct() public method

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() public method

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

beforeTransportStopped() public method

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

bindSmtp() public method

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

connect() public method

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

disconnect() public method

Disconnect from the POP3 host.
public disconnect ( )

newInstance() public static method

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"
return Swift_Plugins_PopBeforeSmtpPlugin

setConnection() public method

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
return Swift_Plugins_PopBeforeSmtpPlugin

setPassword() public method

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

setTimeout() public method

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

setUsername() public method

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

transportStarted() public method

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

transportStopped() public method

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