Zend Framework
1.12
|
Public Member Functions | |
__construct ($host= '127.0.0.1', $port=null) | |
Constructor. | |
__destruct () | |
Class destructor to cleanup open resources. | |
setMaximumLog ($maximumLog) | |
Set the maximum log size. | |
getMaximumLog () | |
Get the maximum log size. | |
connect () | |
Create a connection to the remote host. | |
getRequest () | |
Retrieve the last client request. | |
getResponse () | |
Retrieve the last server response. | |
getLog () | |
Retrieve the transaction log. | |
resetLog () | |
Reset the transaction log. | |
Public Attributes | |
const | EOL = "\r\n" |
Mail default EOL string. | |
const | TIMEOUT_CONNECTION = 30 |
Default timeout in seconds for initiating session. | |
Protected Member Functions | |
_addLog ($value) | |
Add the transaction log. | |
_connect ($remote) | |
Connect to the server using the supplied transport and target. | |
_disconnect () | |
Disconnect from remote host and free resource. | |
_send ($request) | |
Send the given request followed by a LINEEND to the server. | |
_receive ($timeout=null) | |
_expect ($code, $timeout=null) | |
Parse server response for successful codes. | |
_setStreamTimeout ($timeout) | |
Set stream timeout. | |
Protected Attributes | |
$_maximumLog = 64 | |
$_host | |
$_port | |
$_validHost | |
$_socket | |
$_request | |
$_response | |
$_template = '%d%s' | |
__construct | ( | $host = '127.0.0.1' , |
|
$port = null |
|||
) |
Constructor.
string | $host | OPTIONAL Hostname of remote connection (default: 127.0.0.1) |
integer | $port | OPTIONAL Port number (default: null) |
Zend_Mail_Protocol_Exception |
__destruct | ( | ) |
Class destructor to cleanup open resources.
|
protected |
Add the transaction log.
string | new transaction |
|
protected |
Connect to the server using the supplied transport and target.
An example $remote string may be 'tcp://mail.example.com:25' or 'ssh://hostname.com:2222'
string | $remote | Remote |
Zend_Mail_Protocol_Exception |
|
protected |
Disconnect from remote host and free resource.
|
protected |
Parse server response for successful codes.
Read the response from the stream and check for expected return code. Throws a Zend_Mail_Protocol_Exception if an unexpected code is returned.
string | array | $code | One or more codes that indicate a successful response |
Zend_Mail_Protocol_Exception |
|
protected |
|
protected |
Send the given request followed by a LINEEND to the server.
string | $request |
Zend_Mail_Protocol_Exception |
|
protected |
Set stream timeout.
integer | $timeout |
|
abstract |
Create a connection to the remote host.
Concrete adapters for this class will implement their own unique connect scripts, using the _connect() method to create the socket resource.
getLog | ( | ) |
Retrieve the transaction log.
getMaximumLog | ( | ) |
Get the maximum log size.
getRequest | ( | ) |
Retrieve the last client request.
getResponse | ( | ) |
Retrieve the last server response.
resetLog | ( | ) |
Reset the transaction log.
setMaximumLog | ( | $maximumLog | ) |
Set the maximum log size.
integer | $maximumLog | Maximum log size |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const EOL = "\r\n" |
Mail default EOL string.
const TIMEOUT_CONNECTION = 30 |
Default timeout in seconds for initiating session.