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
Datei anzeigen Open project: horde/horde

Protected Properties

Property 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

Public Methods

Method 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 )

Protected Methods

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

Method Details

__construct() public method

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 method

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

_sendAuthenticationFailedHeaders() protected method

Send 401 Unauthorized headers.

authorize() public method

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
return boolean

getInput() public method

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

getResponse() public method

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

getResponseContentType() public method

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

sendOutput() public method

public sendOutput ( $output )

Property Details

$_contentType protected_oe property

Content type header to send in response.
protected string $_contentType
return string

$_get protected_oe property

Holds the request's GET variables
protected array $_get
return array

$_server protected_oe property

The ActiveSync server object
protected Horde_ActiveSync $_server
return Horde_ActiveSync