Свойство | Type | Description | |
---|---|---|---|
$_certPath | string | Path to root certificate bundle | |
$_collectionsObj | Horde_ActiveSync_Collections | The singleton collections handler. | |
$_compression | boolean | Support gzip compression of certain data parts? | |
$_decoder | Horde_ActiveSync_Wbxml_Decoder | Wbxml decoder | |
$_device | Horde_ActiveSync_Device | ||
$_encoder | Horde_ActiveSync_Wbxml_Encoder | Wbxml encoder | |
$_get | array | Local cache of Get variables/decoded base64 uri | |
$_globalError | boolean | Global error flag. | |
$_logger | Horde_Log_Logger | The logger for this class. | |
$_loggerFactory | Horde_ActiveSync_Interface_LoggerFactory | Logger | |
$_maxVersion | float | Highest version to support. | |
$_multipart | boolean | Multipart support? | |
$_needMsRp | boolean | Flag to indicate we need to update the device version. | |
$_procid | integer | Process id (used in logging). | |
$_provisioning | string | Provisioning support | |
$_supportedVersions | array | Supported EAS versions. | |
$_version | float | The actual version we are supporting. |
Méthode | Description | |
---|---|---|
__construct ( Horde_ActiveSync_Driver_Base $driver, Horde_ActiveSync_Wbxml_Decoder $decoder, Horde_ActiveSync_Wbxml_Encoder $encoder, Horde_ActiveSync_State_Base $state, Horde_Controller_Request_Http $request ) : Horde_ActiveSync | Const'r | |
__get ( string $property ) : mixed | Getter | |
activeSyncHeader ( ) | Send the MS_Server-ActiveSync header. | |
authenticate ( Horde_ActiveSync_Credentials $credentials ) : boolean | Authenticate to the backend. | |
checkGlobalError ( ) : mixed | Return any global errors that occured during initial connection. | |
commandsHeader ( ) | Send protocol commands header. | |
contentTypeHeader ( $content_type = null ) | Send the content type header. | |
getCollectionsObject ( ) : Horde_ActiveSync_Collections | Return a collections singleton. | |
getGetVars ( ) : array | Return the GET variables passed from the device, decoding from base64 if needed. | |
getImporter ( ) : Horde_ActiveSync_Connector_Importer | Return an Importer object. | |
getMIMETruncSize ( integer $truncation ) : integer | boolean | Return the number of bytes corresponding to the requested trunction constant. This applies to MIMETRUNCATION only. | |
getPolicyKey ( ) : integer | Obtain the policy key header from the request. | |
getProtocolVersion ( ) : string | Obtain the ActiveSync protocol version requested by the client headers. | |
getSupportedCommands ( ) : string | Return the supported commands in a comma delimited string suitable for sending as the MS-ASProtocolCommands header. | |
getSupportedVersions ( ) : string | Return supported versions in a comma delimited string suitable for sending as the MS-ASProtocolVersions header. | |
getSyncCache ( ) : Horde_ActiveSync_SyncCache | Return a new, fully configured SyncCache. | |
getTruncSize ( integer $truncation ) : integer | boolean | Return the number of bytes corresponding to the requested trunction constant. | |
handleRequest ( string $cmd, string $devId ) : string | boolean | The heart of the server. Dispatch a request to the appropriate request handler. | |
messageFactory ( string $message ) : Horde_ActiveSync_Message_Base | Factory method for creating Horde_ActiveSync_Message objects. | |
provisionHeader ( ) | Send provision header | |
provisioningRequired ( ) | Send the headers indicating that provisioning is required. | |
setLogger ( Horde_ActiveSync_Interface_LoggerFactory $logger ) : void | Setter for the logger | |
setProvisioning ( $provision ) | Setter for provisioning support | |
setRootCertificatePath ( string $path ) | Set the local path to the root certificate bundle. | |
setSupportedVersion ( float $version ) | Allow to force the highest version to support. | |
versionHeader ( ) | Send the protocol versions header. |
Méthode | Description | |
---|---|---|
_doOptionsRequest ( ) | Send the OPTIONS request response headers. | |
_handleDevice ( string $devId ) : boolean | Handle device checks. Takes into account permissions and restrictions via various callback methods. | |
_setLogger ( array $options ) |
public __construct ( Horde_ActiveSync_Driver_Base $driver, Horde_ActiveSync_Wbxml_Decoder $decoder, Horde_ActiveSync_Wbxml_Encoder $encoder, Horde_ActiveSync_State_Base $state, Horde_Controller_Request_Http $request ) : Horde_ActiveSync | ||
$driver | Horde_ActiveSync_Driver_Base | The backend driver. |
$decoder | Horde_ActiveSync_Wbxml_Decoder | The Wbxml decoder. |
$encoder | Horde_ActiveSync_Wbxml_Encoder | The Wbxml encoder. |
$state | Horde_ActiveSync_State_Base | The state driver. |
$request | Horde_Controller_Request_Http | The HTTP request object. |
Résultat | Horde_ActiveSync | The ActiveSync server object. |
protected _doOptionsRequest ( ) |
protected _handleDevice ( string $devId ) : boolean | ||
$devId | string | The client provided device id. |
Résultat | boolean | If EAS version is > 12.1 returns false on any type of failure in allowing the device to connect. Sets appropriate internal variables to indicate the type of error to return to the client. Failure on EAS version < 12.1 results in throwing exceptions. Otherwise, return true. |
public authenticate ( Horde_ActiveSync_Credentials $credentials ) : boolean | ||
$credentials | Horde_ActiveSync_Credentials | The credentials object. |
Résultat | boolean | True on successful authentication to the backend. |
public checkGlobalError ( ) : mixed | ||
Résultat | mixed | A Horde_ActiveSync_Status:: constant of boolean false if no errors. |
public contentTypeHeader ( $content_type = null ) |
public getCollectionsObject ( ) : Horde_ActiveSync_Collections | ||
Résultat | Horde_ActiveSync_Collections |
public getGetVars ( ) : array | ||
Résultat | array | A hash of get variables => values. |
public getImporter ( ) : Horde_ActiveSync_Connector_Importer | ||
Résultat | Horde_ActiveSync_Connector_Importer |
public getPolicyKey ( ) : integer | ||
Résultat | integer | The policy key or '0' if not set. |
public getProtocolVersion ( ) : string | ||
Résultat | string | The EAS version requested by the client. |
public getSupportedCommands ( ) : string | ||
Résultat | string |
public getSupportedVersions ( ) : string | ||
Résultat | string |
public getSyncCache ( ) : Horde_ActiveSync_SyncCache | ||
Résultat | Horde_ActiveSync_SyncCache |
public handleRequest ( string $cmd, string $devId ) : string | boolean | ||
$cmd | string | The command we are requesting. |
$devId | string | The device id making the request. @deprecated |
Résultat | string | boolean | false if failed, true if succeeded and response content is wbxml, otherwise the content-type string to send in the response. |
public static messageFactory ( string $message ) : Horde_ActiveSync_Message_Base | ||
$message | string | The message type. |
Résultat | Horde_ActiveSync_Message_Base | The concrete message object. |
public provisioningRequired ( ) |
public setProvisioning ( $provision ) |
public setRootCertificatePath ( string $path ) | ||
$path | string | The local path to the bundle. |
public setSupportedVersion ( float $version ) | ||
$version | float | The highest version |
protected string $_certPath | ||
Résultat | string |
protected Horde_ActiveSync_Collections $_collectionsObj | ||
Résultat | Horde_ActiveSync_Collections |
protected bool $_compression | ||
Résultat | boolean |
protected Horde_ActiveSync_Wbxml_Decoder $_decoder | ||
Résultat | Horde_ActiveSync_Wbxml_Decoder |
protected static Horde_ActiveSync_Device $_device | ||
Résultat | Horde_ActiveSync_Device |
protected Horde_ActiveSync_Wbxml_Encoder $_encoder | ||
Résultat | Horde_ActiveSync_Wbxml_Encoder |
protected array $_get | ||
Résultat | array |
protected bool $_globalError | ||
Résultat | boolean |
protected static Horde_Log_Logger $_logger | ||
Résultat | Horde_Log_Logger |
protected Horde_ActiveSync_Interface_LoggerFactory $_loggerFactory | ||
Résultat | Horde_ActiveSync_Interface_LoggerFactory |
protected float $_maxVersion | ||
Résultat | float |
protected bool $_needMsRp | ||
Résultat | boolean |
protected int $_procid | ||
Résultat | integer |
protected string $_provisioning | ||
Résultat | string |
protected static array $_supportedVersions | ||
Résultat | array |
protected static float $_version | ||
Résultat | float |