PHP Class 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.
Author: Michael J Rubinsky ([email protected])
Inheritance: extends Horde_Rpc
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_contentType string Content type header to send in response.
$_get array Holds the request's GET variables
$_server Horde_ActiveSync The ActiveSync server object

Méthodes publiques

Méthode Description
__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 )

Méthodes protégées

Méthode Description
_handleError ( Exception $e ) Output exception information to the logger.
_sendAuthenticationFailedHeaders ( $e ) Send 401 Unauthorized headers.

Method Details

__construct() public méthode

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() protected méthode

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

_sendAuthenticationFailedHeaders() protected méthode

Send 401 Unauthorized headers.

authorize() public méthode

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
Résultat boolean

getInput() public méthode

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

getResponse() public méthode

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

getResponseContentType() public méthode

Returns the Content-Type of the response.
public getResponseContentType ( ) : string
Résultat string The MIME Content-Type of the RPC response.

sendOutput() public méthode

public sendOutput ( $output )

Property Details

$_contentType protected_oe property

Content type header to send in response.
protected string $_contentType
Résultat string

$_get protected_oe property

Holds the request's GET variables
protected array $_get
Résultat array

$_server protected_oe property

The ActiveSync server object
protected Horde_ActiveSync $_server
Résultat Horde_ActiveSync