CONFLICT_OVERWRITE_SERVER
CONFLICT_OVERWRITE_SERVER
The Horde ActiveSync server. Entry point for performing all ActiveSync operations.
$_loggerFactory : \Horde_ActiveSync_Interface_LoggerFactory
Logger
$_device : \Horde_ActiveSync_Device
$_encoder : \Horde_ActiveSync_Wbxml_Encoder
Wbxml encoder
$_decoder : \Horde_ActiveSync_Wbxml_Decoder
Wbxml decoder
$_collectionsObj : \Horde_ActiveSync_Collections
The singleton collections handler.
messageFactory(string $message) : \Horde_ActiveSync_Message_Base
Factory method for creating Horde_ActiveSync_Message objects.
string | $message | The message type. |
The concrete message object.
__construct(\Horde_ActiveSync_Driver_Base $driver, \Horde_ActiveSync_Wbxml_Decoder $decoder, \Horde_ActiveSync_Wbxml_Endcoder $encoder, \Horde_ActiveSync_State_Base $state, \Horde_Controller_Request_Http $request) : \Horde_ActiveSync
Const'r
\Horde_ActiveSync_Driver_Base | $driver | The backend driver. |
\Horde_ActiveSync_Wbxml_Decoder | $decoder | The Wbxml decoder. |
\Horde_ActiveSync_Wbxml_Endcoder | $encoder | The Wbxml encoder. |
\Horde_ActiveSync_State_Base | $state | The state driver. |
\Horde_Controller_Request_Http | $request | The HTTP request object. |
The ActiveSync server object.
getCollectionsObject() : \Horde_ActiveSync_Collections
Return a collections singleton.
getSyncCache() : \Horde_ActiveSync_SyncCache
Return a new, fully configured SyncCache.
getImporter() : \Horde_ActiveSync_Connector_Importer
Return an Importer object.
authenticate(\Horde_ActiveSync_Credentials $credentials) : boolean
Authenticate to the backend.
\Horde_ActiveSync_Credentials | $credentials | The credentials object. |
True on successful authentication to the backend.
setLogger(\Horde_ActiveSync_Interface_LoggerFactory $logger)
Setter for the logger factory.
\Horde_ActiveSync_Interface_LoggerFactory | $logger | The logger factory. |
handleRequest(string $cmd, string $devId) : string|boolean
The heart of the server. Dispatch a request to the appropriate request handler.
string | $cmd | The command we are requesting. |
string | $devId | The device id making the request. @deprecated |
false if failed, true if succeeded and response content is wbxml, otherwise the content-type string to send in the response.
getMIMETruncSize(integer $truncation) : integer|boolean
Return the number of bytes corresponding to the requested trunction constant. This applies to MIMETRUNCATION only.
integer | $truncation | The constant. |
Either the size, in bytes, to truncate or falso if no truncation.
_handleDevice(string $devId) : boolean
Handle device checks. Takes into account permissions and restrictions via various callback methods.
string | $devId | The client provided device id. |
Horde_Exception_AuthenticationFailure
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.