PHP Class Horde_ActiveSync_Request_Autodiscover, horde

Author: Michael J Rubinsky ([email protected])
Inheritance: extends Horde_ActiveSync_Request_Base
Mostra file Open project: horde/horde Class Usage Examples

Public Methods

Method Description
handle ( Horde_Controller_Request $request = null ) : text Handle request

Protected Methods

Method Description
_buildFailureResponse ( string $email, string $status, string $response_schema ) : string Output failure response code.
_buildResponseString ( array $properties ) : string Build the appropriate response string to send back to the client.
_getEncryptionValue ( $type, $properties )
_handle ( ) Noop. This class overrides the handle method.

Method Details

_buildFailureResponse() protected method

Output failure response code.
protected _buildFailureResponse ( string $email, string $status, string $response_schema ) : string
$email string The email of the user attempting Autodiscover.
$status string An appropriate status code for the error. E.g., 600 - Invalid response. 601 - Provider not found for requested schema.
$response_schema string The response schema value.
return string The XML to send to the client.

_buildResponseString() protected method

Build the appropriate response string to send back to the client.
protected _buildResponseString ( array $properties ) : string
$properties array An array containing any needed properties. Required properties for mobile sync: - request_schema: The request schema sent by the client. - response_schema: The schema the client indicated it can accept. - culture: The culture value (normally 'en:en'). - display_name: The user's configured display name. - email: The user's email address. - url: The url of the Microsoft-Servers-ActiveSync endpoint for this user to use. Properties used for Outlook schema: - imap: Array describing the IMAP server. - pop: Array describing the POP3 server. - smtp: Array describing the SMTP server. @return string The XML to return to the client.
return string

_getEncryptionValue() protected method

protected _getEncryptionValue ( $type, $properties )

_handle() protected method

Noop. This class overrides the handle method.
protected _handle ( )

handle() public method

Handle request
public handle ( Horde_Controller_Request $request = null ) : text
$request Horde_Controller_Request
return text The content type of the response (text/xml).