PHP Класс Horde_Rpc_ActiveSync, horde

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Michael J Rubinsky ([email protected])
Наследование: extends Horde_Rpc
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_contentType string Content type header to send in response.
$_get array Holds the request's GET variables
$_server Horde_ActiveSync The ActiveSync server object

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

Метод Описание
__construct ( Horde_Controller_Request_Http $request, array $params = [] ) Constructor.
authorize ( ) : boolean Override the authorize method and always return true. The ActiveSync server classes handle authentication directly since we need complete control over what responses are sent.
getInput ( ) Horde_ActiveSync will read the input stream directly, do not access it here.
getResponse ( string $request ) Sends an RPC request to the server and returns the result.
getResponseContentType ( ) : string Returns the Content-Type of the response.
sendOutput ( $output )

Защищенные методы

Метод Описание
_handleError ( Exception $e ) Output exception information to the logger.
_sendAuthenticationFailedHeaders ( $e ) Send 401 Unauthorized headers.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Horde_Controller_Request_Http $request, array $params = [] )
$request Horde_Controller_Request_Http
$params array A hash containing configuration parameters: - server: (Horde_ActiveSync) The ActiveSync server object. DEFAULT: none, REQUIRED

_handleError() защищенный Метод

Output exception information to the logger.
protected _handleError ( Exception $e )
$e Exception The exception

_sendAuthenticationFailedHeaders() защищенный Метод

Send 401 Unauthorized headers.

authorize() публичный Метод

Override the authorize method and always return true. The ActiveSync server classes handle authentication directly since we need complete control over what responses are sent.
public authorize ( ) : boolean
Результат boolean

getInput() публичный Метод

Horde_ActiveSync will read the input stream directly, do not access it here.
public getInput ( )

getResponse() публичный Метод

Sends an RPC request to the server and returns the result.
public getResponse ( string $request )
$request string PHP input stream (ignored).

getResponseContentType() публичный Метод

Returns the Content-Type of the response.
public getResponseContentType ( ) : string
Результат string The MIME Content-Type of the RPC response.

sendOutput() публичный Метод

public sendOutput ( $output )

Описание свойств

$_contentType защищенное свойство

Content type header to send in response.
protected string $_contentType
Результат string

$_get защищенное свойство

Holds the request's GET variables
protected array $_get
Результат array

$_server защищенное свойство

The ActiveSync server object
protected Horde_ActiveSync $_server
Результат Horde_ActiveSync