Свойство | Тип | Описание | |
---|---|---|---|
$_logger | Horde_Log_Logger | Logger | |
$host | string | String containing name/IP address of IMSP host. | |
$lastRawError | string | String buffer containing the last raw NO or BAD response from the server. | |
$port | string | String containing port for IMSP server. |
Свойство | Тип | Описание | |
---|---|---|---|
$_authObj | Horde_Imsp_Auth | The auth object | |
$_commandCount | integer | Current command count | |
$_commandPrefix | string | Current command prefix | |
$_lastCommandTag | string | Command tag last used. | |
$_tag | string | Currently in-use command tag |
Метод | Описание | |
---|---|---|
__construct ( array $params ) | Constructor function. | |
authenticate ( boolean $login = true ) : boolean | Attempts to login to IMSP server. | |
capability ( ) : string | Returns the raw capability response from the server. | |
getServerResponseChunks ( ) : array |
Retrieves CRLF terminated response from server and splits it into
an array delimited by a |
|
logout ( ) | Close connection and logout from IMSP server. | |
quoteSpacedString ( string $string ) : string | Determines if a string needs to be quoted before sending to the server. | |
receive ( ) : mixed | Receives a single CRLF terminated server response string | |
receiveStringLiteral ( integer $length ) : string | Receives fixed number of bytes from IMSP socket. Used when server returns a string literal. | |
send ( string $commandText, boolean $includeTag = true, boolean $sendCRLF = true, boolean $continuation = false ) | Attempts to send a command to the server. |
Метод | Описание | |
---|---|---|
_getNextCommandTag ( ) : string | Increments the IMSP command tag token. |
authObjOptional parameters:The object to handle the authentication
serverThe IMSP host port The port the IMSP server listens on logger The logger.
public __construct ( array $params ) | ||
$params | array | Hash containing server parameters. |
protected _getNextCommandTag ( ) : string | ||
Результат | string | Next command tag. |
abstract public authenticate ( boolean $login = true ) : boolean | ||
$login | boolean | Should we remain logged in after auth? |
Результат | boolean |
abstract public capability ( ) : string | ||
Результат | string | The raw capability response. |
abstract public getServerResponseChunks ( ) : array | ||
Результат | array | The exploded string |
abstract public logout ( ) |
public static quoteSpacedString ( string $string ) : string | ||
$string | string | String to be tested. |
Результат | string | Original string, quoted if needed. |
abstract public receiveStringLiteral ( integer $length ) : string | ||
$length | integer | Number of bytes to read from socket. |
Результат | string | Text of string literal. |
abstract public send ( string $commandText, boolean $includeTag = true, boolean $sendCRLF = true, boolean $continuation = false ) | ||
$commandText | string | Text to send to the server. |
$includeTag | boolean | Determines if command tag is prepended. |
$sendCRLF | boolean | Determines if CRLF is appended. |
$continuation | boolean | Expect a command continuation response. |
protected Horde_Imsp_Auth $_authObj | ||
Результат | Horde_Imsp_Auth |
protected int $_commandCount | ||
Результат | integer |
protected string $_commandPrefix | ||
Результат | string |
protected string $_lastCommandTag | ||
Результат | string |
public string $host | ||
Результат | string |
public string $lastRawError | ||
Результат | string |
public string $port | ||
Результат | string |