XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
__construct ($host, $port=110, $crypto=null) | |
beforeTransportStarted (Swift_Events_TransportChangeEvent $evt) | |
beforeTransportStopped (Swift_Events_TransportChangeEvent $evt) | |
bindSmtp (Swift_Transport $smtp) | |
connect () | |
disconnect () | |
setConnection (Swift_Plugins_Pop_Pop3Connection $connection) | |
setPassword ($password) | |
setTimeout ($timeout) | |
setUsername ($username) | |
transportStarted (Swift_Events_TransportChangeEvent $evt) | |
transportStopped (Swift_Events_TransportChangeEvent $evt) | |
Static Public Member Functions | |
static | newInstance ($host, $port=110, $crypto=null) |
Private Member Functions | |
_assertOk ($response) | |
_command ($command) | |
_getHostString () | |
Private Attributes | |
$_connection | |
$_crypto | |
$_host | |
$_password | |
$_port | |
$_socket | |
$_timeout = 10 | |
$_transport | |
$_username | |
Definition at line 22 of file PopBeforeSmtpPlugin.php.
Swift_Plugins_PopBeforeSmtpPlugin::__construct | ( | $host, | |
$port = 110 , |
|||
$crypto = null |
|||
) |
Create a new PopBeforeSmtpPlugin for $host and $port.
string | $host | |
int | $port | |
string | $cypto | as "tls" or "ssl" |
Definition at line 60 of file PopBeforeSmtpPlugin.php.
|
private |
Definition at line 262 of file PopBeforeSmtpPlugin.php.
Referenced by _command(), and connect().
|
private |
Definition at line 241 of file PopBeforeSmtpPlugin.php.
References _assertOk().
Referenced by connect(), and disconnect().
|
private |
Definition at line 272 of file PopBeforeSmtpPlugin.php.
References $_host.
Referenced by connect().
Swift_Plugins_PopBeforeSmtpPlugin::beforeTransportStarted | ( | Swift_Events_TransportChangeEvent | $evt | ) |
Invoked just before a Transport is started.
Swift_Events_TransportChangeEvent | $evt |
Implements Swift_Events_TransportChangeListener.
Definition at line 204 of file PopBeforeSmtpPlugin.php.
References connect(), disconnect(), and Swift_Events_TransportChangeEvent\getTransport().
Swift_Plugins_PopBeforeSmtpPlugin::beforeTransportStopped | ( | Swift_Events_TransportChangeEvent | $evt | ) |
Not used.
Implements Swift_Events_TransportChangeListener.
Definition at line 228 of file PopBeforeSmtpPlugin.php.
Swift_Plugins_PopBeforeSmtpPlugin::bindSmtp | ( | Swift_Transport | $smtp | ) |
Bind this plugin to a specific SMTP transport instance.
Swift_Transport |
Definition at line 97 of file PopBeforeSmtpPlugin.php.
Swift_Plugins_PopBeforeSmtpPlugin::connect | ( | ) |
Connect to the POP3 host and authenticate.
Swift_Plugins_Pop_Pop3Exception | if connection fails |
Implements Swift_Plugins_Pop_Pop3Connection.
Definition at line 140 of file PopBeforeSmtpPlugin.php.
References _assertOk(), _command(), and _getHostString().
Referenced by beforeTransportStarted().
Swift_Plugins_PopBeforeSmtpPlugin::disconnect | ( | ) |
Disconnect from the POP3 host.
Implements Swift_Plugins_Pop_Pop3Connection.
Definition at line 180 of file PopBeforeSmtpPlugin.php.
References _command().
Referenced by beforeTransportStarted().
|
static |
Create a new PopBeforeSmtpPlugin for $host and $port.
string | $host | |
int | $port | |
string | $cypto | as "tls" or "ssl" |
Definition at line 76 of file PopBeforeSmtpPlugin.php.
Swift_Plugins_PopBeforeSmtpPlugin::setConnection | ( | Swift_Plugins_Pop_Pop3Connection | $connection | ) |
Set a Pop3Connection to delegate to instead of connecting directly.
Swift_Plugins_Pop_Pop3Connection | $connection |
Definition at line 86 of file PopBeforeSmtpPlugin.php.
Swift_Plugins_PopBeforeSmtpPlugin::setPassword | ( | $password | ) |
Set the password to use when connecting (if needed).
string | $password |
Definition at line 129 of file PopBeforeSmtpPlugin.php.
Swift_Plugins_PopBeforeSmtpPlugin::setTimeout | ( | $timeout | ) |
Set the connection timeout in seconds (default 10).
int | $timeout |
Definition at line 107 of file PopBeforeSmtpPlugin.php.
Swift_Plugins_PopBeforeSmtpPlugin::setUsername | ( | $username | ) |
Set the username to use when connecting (if needed).
string | $username |
Definition at line 118 of file PopBeforeSmtpPlugin.php.
Swift_Plugins_PopBeforeSmtpPlugin::transportStarted | ( | Swift_Events_TransportChangeEvent | $evt | ) |
Not used.
Implements Swift_Events_TransportChangeListener.
Definition at line 221 of file PopBeforeSmtpPlugin.php.
Swift_Plugins_PopBeforeSmtpPlugin::transportStopped | ( | Swift_Events_TransportChangeEvent | $evt | ) |
Not used.
Implements Swift_Events_TransportChangeListener.
Definition at line 235 of file PopBeforeSmtpPlugin.php.
|
private |
A delegate connection to use (mostly a test hook)
Definition at line 27 of file PopBeforeSmtpPlugin.php.
|
private |
Encryption type to use (if any)
Definition at line 36 of file PopBeforeSmtpPlugin.php.
|
private |
Hostname of the POP3 server
Definition at line 30 of file PopBeforeSmtpPlugin.php.
Referenced by _getHostString().
|
private |
Password to use (if any)
Definition at line 42 of file PopBeforeSmtpPlugin.php.
|
private |
Port number to connect on
Definition at line 33 of file PopBeforeSmtpPlugin.php.
|
private |
Established connection via TCP socket
Definition at line 45 of file PopBeforeSmtpPlugin.php.
|
private |
Connect timeout in seconds
Definition at line 48 of file PopBeforeSmtpPlugin.php.
|
private |
SMTP Transport to bind to
Definition at line 51 of file PopBeforeSmtpPlugin.php.
|
private |
Username to use (if any)
Definition at line 39 of file PopBeforeSmtpPlugin.php.