\Horde_ActiveSync

The Horde ActiveSync server. Entry point for performing all ActiveSync operations.

Summary

Methods
Properties
Constants
messageFactory()
__construct()
getCollectionsObject()
getSyncCache()
getImporter()
authenticate()
setSupportedVersion()
setRootCertificatePath()
__get()
setLogger()
_wrapLogger()
setProvisioning()
provisioningRequired()
handleRequest()
activeSyncHeader()
versionHeader()
getSupportedVersions()
commandsHeader()
getSupportedCommands()
provisionHeader()
getPolicyKey()
getProtocolVersion()
getGetVars()
checkGlobalError()
contentTypeHeader()
getMIMETruncSize()
getTruncSize()
$encoder
$decoder
$state
$request
$driver
$provisioning
$multipart
$certPath
$device
$logger
CONFLICT_OVERWRITE_SERVER
CONFLICT_OVERWRITE_PIM
TRUNCATION_ALL
TRUNCATION_1
TRUNCATION_2
TRUNCATION_3
TRUNCATION_4
TRUNCATION_5
TRUNCATION_6
TRUNCATION_7
TRUNCATION_8
TRUNCATION_9
TRUNCATION_NONE
FOLDERHIERARCHY_FOLDERS
FOLDERHIERARCHY_FOLDER
FOLDERHIERARCHY_DISPLAYNAME
FOLDERHIERARCHY_SERVERENTRYID
FOLDERHIERARCHY_PARENTID
FOLDERHIERARCHY_TYPE
FOLDERHIERARCHY_RESPONSE
FOLDERHIERARCHY_STATUS
FOLDERHIERARCHY_CONTENTCLASS
FOLDERHIERARCHY_CHANGES
FOLDERHIERARCHY_SYNCKEY
FOLDERHIERARCHY_FOLDERSYNC
FOLDERHIERARCHY_COUNT
FOLDERHIERARCHY_VERSION
SYNC_SYNCHRONIZE
SYNC_REPLIES
SYNC_ADD
SYNC_MODIFY
SYNC_REMOVE
SYNC_FETCH
SYNC_SYNCKEY
SYNC_CLIENTENTRYID
SYNC_SERVERENTRYID
SYNC_STATUS
SYNC_FOLDER
SYNC_FOLDERTYPE
SYNC_VERSION
SYNC_FOLDERID
SYNC_GETCHANGES
SYNC_MOREAVAILABLE
SYNC_WINDOWSIZE
SYNC_COMMANDS
SYNC_OPTIONS
SYNC_FILTERTYPE
SYNC_TRUNCATION
SYNC_RTFTRUNCATION
SYNC_CONFLICT
SYNC_FOLDERS
SYNC_DATA
SYNC_DELETESASMOVES
SYNC_NOTIFYGUID
SYNC_SUPPORTED
SYNC_SOFTDELETE
SYNC_MIMESUPPORT
SYNC_MIMETRUNCATION
SYNC_NEWMESSAGE
SYNC_PARTIAL
SYNC_WAIT
SYNC_LIMIT
SYNC_HEARTBEATINTERVAL
SYNC_CONVERSATIONMODE
SYNC_MAXITEMS
SYNC_DOCUMENTLIBRARY_LINKID
SYNC_DOCUMENTLIBRARY_DISPLAYNAME
SYNC_DOCUMENTLIBRARY_ISFOLDER
SYNC_DOCUMENTLIBRARY_CREATIONDATE
SYNC_DOCUMENTLIBRARY_LASTMODIFIEDDATE
SYNC_DOCUMENTLIBRARY_ISHIDDEN
SYNC_DOCUMENTLIBRARY_CONTENTLENGTH
SYNC_DOCUMENTLIBRARY_CONTENTTYPE
AIRSYNCBASE_BODYPREFERENCE
AIRSYNCBASE_TYPE
AIRSYNCBASE_TRUNCATIONSIZE
AIRSYNCBASE_ALLORNONE
AIRSYNCBASE_BODY
AIRSYNCBASE_DATA
AIRSYNCBASE_ESTIMATEDDATASIZE
AIRSYNCBASE_TRUNCATED
AIRSYNCBASE_ATTACHMENTS
AIRSYNCBASE_ATTACHMENT
AIRSYNCBASE_DISPLAYNAME
AIRSYNCBASE_FILEREFERENCE
AIRSYNCBASE_METHOD
AIRSYNCBASE_CONTENTID
AIRSYNCBASE_CONTENTLOCATION
AIRSYNCBASE_ISINLINE
AIRSYNCBASE_NATIVEBODYTYPE
AIRSYNCBASE_CONTENTTYPE
AIRSYNCBASE_LOCATION
AIRSYNCBASE_PREVIEW
AIRSYNCBASE_BODYPARTPREFERENCE
AIRSYNCBASE_BODYPART
AIRSYNCBASE_STATUS
AIRSYNCBASE_ADD
AIRSYNCBASE_DELETE
AIRSYNCBASE_CLIENTID
AIRSYNCBASE_CONTENT
AIRSYNCBASE_ANNOTATION
AIRSYNCBASE_STREET
AIRSYNCBASE_CITY
AIRSYNCBASE_STATE
AIRSYNCBASE_COUNTRY
AIRSYNCBASE_POSTALCODE
AIRSYNCBASE_LATITUDE
AIRSYNCBASE_LONGITUDE
AIRSYNCBASE_ACCURACY
AIRSYNCBASE_ALTITUDE
AIRSYNCBASE_ALTITUDEACCURACY
AIRSYNCBASE_LOCATIONURI
AIRSYNCBASE_INSTANCEID
BODYPREF_TYPE_PLAIN
BODYPREF_TYPE_HTML
BODYPREF_TYPE_RTF
BODYPREF_TYPE_MIME
PROVISION_PROVISION
PROVISION_POLICIES
PROVISION_POLICY
PROVISION_POLICYTYPE
PROVISION_POLICYKEY
PROVISION_DATA
PROVISION_STATUS
PROVISION_REMOTEWIPE
PROVISION_EASPROVISIONDOC
POLICYTYPE_XML
POLICYTYPE_WBXML
FLAG_NEWMESSAGE
FOLDER_TYPE_OTHER
FOLDER_TYPE_INBOX
FOLDER_TYPE_DRAFTS
FOLDER_TYPE_WASTEBASKET
FOLDER_TYPE_SENTMAIL
FOLDER_TYPE_OUTBOX
FOLDER_TYPE_TASK
FOLDER_TYPE_APPOINTMENT
FOLDER_TYPE_CONTACT
FOLDER_TYPE_NOTE
FOLDER_TYPE_JOURNAL
FOLDER_TYPE_USER_MAIL
FOLDER_TYPE_USER_APPOINTMENT
FOLDER_TYPE_USER_CONTACT
FOLDER_TYPE_USER_TASK
FOLDER_TYPE_USER_JOURNAL
FOLDER_TYPE_USER_NOTE
FOLDER_TYPE_UNKNOWN
FOLDER_TYPE_RECIPIENT_CACHE
FOLDER_TYPE_DUMMY
CHANGE_ORIGIN_PIM
CHANGE_ORIGIN_SERVER
CHANGE_ORIGIN_NA
RWSTATUS_NA
RWSTATUS_OK
RWSTATUS_PENDING
RWSTATUS_WIPED
GAL_DISPLAYNAME
GAL_PHONE
GAL_OFFICE
GAL_TITLE
GAL_COMPANY
GAL_ALIAS
GAL_FIRSTNAME
GAL_LASTNAME
GAL_HOMEPHONE
GAL_MOBILEPHONE
GAL_EMAILADDRESS
GAL_PICTURE
GAL_STATUS
GAL_DATA
REQUEST_TYPE_SYNC
REQUEST_TYPE_FOLDERSYNC
CHANGE_TYPE_CHANGE
CHANGE_TYPE_DELETE
CHANGE_TYPE_FLAGS
CHANGE_TYPE_MOVE
CHANGE_TYPE_FOLDERSYNC
CHANGE_TYPE_SOFTDELETE
CHANGE_TYPE_DRAFT
CHANGE_REPLY_STATE
CHANGE_REPLYALL_STATE
CHANGE_FORWARD_STATE
RM_SUPPORT
RM_TEMPLATEID
CLASS_EMAIL
CLASS_CONTACTS
CLASS_CALENDAR
CLASS_TASKS
CLASS_NOTES
CLASS_SMS
FILTERTYPE_ALL
FILTERTYPE_1DAY
FILTERTYPE_3DAYS
FILTERTYPE_1WEEK
FILTERTYPE_2WEEKS
FILTERTYPE_1MONTH
FILTERTYPE_3MONTHS
FILTERTYPE_6MONTHS
FILTERTYPE_INCOMPLETETASKS
PROVISIONING_FORCE
PROVISIONING_LOOSE
PROVISIONING_NONE
FOLDER_ROOT
VERSION_TWOFIVE
VERSION_TWELVE
VERSION_TWELVEONE
VERSION_FOURTEEN
VERSION_FOURTEENONE
VERSION_SIXTEEN
MIME_SUPPORT_NONE
MIME_SUPPORT_SMIME
MIME_SUPPORT_ALL
IMAP_FLAG_REPLY
IMAP_FLAG_FORWARD
RESOLVE_RESULT_GAL
RESOLVE_RESULT_ADDRESSBOOK
AUTH_REASON_USER_DENIED
AUTH_REASON_DEVICE_DENIED
ALL_GHOSTED
LIBRARY_VERSION
_setLogger()
_handleDevice()
_handleOptionsRequest()
$_loggerFactory
$_logger
$_provisioning
$_maxVersion
$_version
$_multipart
$_compression
$_get
$_certPath
$_device
$_encoder
$_decoder
$_collectionsObj
$_globalError
$_procid
$_needMsRp
$_supportedVersions
N/A
No private methods found
No private properties found
N/A

Constants

CONFLICT_OVERWRITE_SERVER

CONFLICT_OVERWRITE_SERVER

CONFLICT_OVERWRITE_PIM

CONFLICT_OVERWRITE_PIM

TRUNCATION_ALL

TRUNCATION_ALL

TRUNCATION_1

TRUNCATION_1

TRUNCATION_2

TRUNCATION_2

TRUNCATION_3

TRUNCATION_3

TRUNCATION_4

TRUNCATION_4

TRUNCATION_5

TRUNCATION_5

TRUNCATION_6

TRUNCATION_6

TRUNCATION_7

TRUNCATION_7

TRUNCATION_8

TRUNCATION_8

TRUNCATION_9

TRUNCATION_9

TRUNCATION_NONE

TRUNCATION_NONE

FOLDERHIERARCHY_FOLDERS

FOLDERHIERARCHY_FOLDERS

FOLDERHIERARCHY_FOLDER

FOLDERHIERARCHY_FOLDER

FOLDERHIERARCHY_DISPLAYNAME

FOLDERHIERARCHY_DISPLAYNAME

FOLDERHIERARCHY_SERVERENTRYID

FOLDERHIERARCHY_SERVERENTRYID

FOLDERHIERARCHY_PARENTID

FOLDERHIERARCHY_PARENTID

FOLDERHIERARCHY_TYPE

FOLDERHIERARCHY_TYPE

FOLDERHIERARCHY_RESPONSE

FOLDERHIERARCHY_RESPONSE

FOLDERHIERARCHY_STATUS

FOLDERHIERARCHY_STATUS

FOLDERHIERARCHY_CONTENTCLASS

FOLDERHIERARCHY_CONTENTCLASS

FOLDERHIERARCHY_CHANGES

FOLDERHIERARCHY_CHANGES

FOLDERHIERARCHY_SYNCKEY

FOLDERHIERARCHY_SYNCKEY

FOLDERHIERARCHY_FOLDERSYNC

FOLDERHIERARCHY_FOLDERSYNC

FOLDERHIERARCHY_COUNT

FOLDERHIERARCHY_COUNT

FOLDERHIERARCHY_VERSION

FOLDERHIERARCHY_VERSION

SYNC_SYNCHRONIZE

SYNC_SYNCHRONIZE

SYNC_REPLIES

SYNC_REPLIES

SYNC_ADD

SYNC_ADD

SYNC_MODIFY

SYNC_MODIFY

SYNC_REMOVE

SYNC_REMOVE

SYNC_FETCH

SYNC_FETCH

SYNC_SYNCKEY

SYNC_SYNCKEY

SYNC_CLIENTENTRYID

SYNC_CLIENTENTRYID

SYNC_SERVERENTRYID

SYNC_SERVERENTRYID

SYNC_STATUS

SYNC_STATUS

SYNC_FOLDER

SYNC_FOLDER

SYNC_FOLDERTYPE

SYNC_FOLDERTYPE

SYNC_VERSION

SYNC_VERSION

SYNC_FOLDERID

SYNC_FOLDERID

SYNC_GETCHANGES

SYNC_GETCHANGES

SYNC_MOREAVAILABLE

SYNC_MOREAVAILABLE

SYNC_WINDOWSIZE

SYNC_WINDOWSIZE

SYNC_COMMANDS

SYNC_COMMANDS

SYNC_OPTIONS

SYNC_OPTIONS

SYNC_FILTERTYPE

SYNC_FILTERTYPE

SYNC_TRUNCATION

SYNC_TRUNCATION

SYNC_RTFTRUNCATION

SYNC_RTFTRUNCATION

SYNC_CONFLICT

SYNC_CONFLICT

SYNC_FOLDERS

SYNC_FOLDERS

SYNC_DATA

SYNC_DATA

SYNC_DELETESASMOVES

SYNC_DELETESASMOVES

SYNC_NOTIFYGUID

SYNC_NOTIFYGUID

SYNC_SUPPORTED

SYNC_SUPPORTED

SYNC_SOFTDELETE

SYNC_SOFTDELETE

SYNC_MIMESUPPORT

SYNC_MIMESUPPORT

SYNC_MIMETRUNCATION

SYNC_MIMETRUNCATION

SYNC_NEWMESSAGE

SYNC_NEWMESSAGE

SYNC_PARTIAL

SYNC_PARTIAL

SYNC_WAIT

SYNC_WAIT

SYNC_LIMIT

SYNC_LIMIT

SYNC_HEARTBEATINTERVAL

SYNC_HEARTBEATINTERVAL

SYNC_CONVERSATIONMODE

SYNC_CONVERSATIONMODE

SYNC_MAXITEMS

SYNC_MAXITEMS

SYNC_DOCUMENTLIBRARY_LINKID

SYNC_DOCUMENTLIBRARY_LINKID

SYNC_DOCUMENTLIBRARY_DISPLAYNAME

SYNC_DOCUMENTLIBRARY_DISPLAYNAME

SYNC_DOCUMENTLIBRARY_ISFOLDER

SYNC_DOCUMENTLIBRARY_ISFOLDER

SYNC_DOCUMENTLIBRARY_CREATIONDATE

SYNC_DOCUMENTLIBRARY_CREATIONDATE

SYNC_DOCUMENTLIBRARY_LASTMODIFIEDDATE

SYNC_DOCUMENTLIBRARY_LASTMODIFIEDDATE

SYNC_DOCUMENTLIBRARY_ISHIDDEN

SYNC_DOCUMENTLIBRARY_ISHIDDEN

SYNC_DOCUMENTLIBRARY_CONTENTLENGTH

SYNC_DOCUMENTLIBRARY_CONTENTLENGTH

SYNC_DOCUMENTLIBRARY_CONTENTTYPE

SYNC_DOCUMENTLIBRARY_CONTENTTYPE

AIRSYNCBASE_BODYPREFERENCE

AIRSYNCBASE_BODYPREFERENCE

AIRSYNCBASE_TYPE

AIRSYNCBASE_TYPE

AIRSYNCBASE_TRUNCATIONSIZE

AIRSYNCBASE_TRUNCATIONSIZE

AIRSYNCBASE_ALLORNONE

AIRSYNCBASE_ALLORNONE

AIRSYNCBASE_BODY

AIRSYNCBASE_BODY

AIRSYNCBASE_DATA

AIRSYNCBASE_DATA

AIRSYNCBASE_ESTIMATEDDATASIZE

AIRSYNCBASE_ESTIMATEDDATASIZE

AIRSYNCBASE_TRUNCATED

AIRSYNCBASE_TRUNCATED

AIRSYNCBASE_ATTACHMENTS

AIRSYNCBASE_ATTACHMENTS

AIRSYNCBASE_ATTACHMENT

AIRSYNCBASE_ATTACHMENT

AIRSYNCBASE_DISPLAYNAME

AIRSYNCBASE_DISPLAYNAME

AIRSYNCBASE_FILEREFERENCE

AIRSYNCBASE_FILEREFERENCE

AIRSYNCBASE_METHOD

AIRSYNCBASE_METHOD

AIRSYNCBASE_CONTENTID

AIRSYNCBASE_CONTENTID

AIRSYNCBASE_CONTENTLOCATION

AIRSYNCBASE_CONTENTLOCATION

AIRSYNCBASE_ISINLINE

AIRSYNCBASE_ISINLINE

AIRSYNCBASE_NATIVEBODYTYPE

AIRSYNCBASE_NATIVEBODYTYPE

AIRSYNCBASE_CONTENTTYPE

AIRSYNCBASE_CONTENTTYPE

AIRSYNCBASE_LOCATION

AIRSYNCBASE_LOCATION

AIRSYNCBASE_PREVIEW

AIRSYNCBASE_PREVIEW

AIRSYNCBASE_BODYPARTPREFERENCE

AIRSYNCBASE_BODYPARTPREFERENCE

AIRSYNCBASE_BODYPART

AIRSYNCBASE_BODYPART

AIRSYNCBASE_STATUS

AIRSYNCBASE_STATUS

AIRSYNCBASE_ADD

AIRSYNCBASE_ADD

AIRSYNCBASE_DELETE

AIRSYNCBASE_DELETE

AIRSYNCBASE_CLIENTID

AIRSYNCBASE_CLIENTID

AIRSYNCBASE_CONTENT

AIRSYNCBASE_CONTENT

AIRSYNCBASE_ANNOTATION

AIRSYNCBASE_ANNOTATION

AIRSYNCBASE_STREET

AIRSYNCBASE_STREET

AIRSYNCBASE_CITY

AIRSYNCBASE_CITY

AIRSYNCBASE_STATE

AIRSYNCBASE_STATE

AIRSYNCBASE_COUNTRY

AIRSYNCBASE_COUNTRY

AIRSYNCBASE_POSTALCODE

AIRSYNCBASE_POSTALCODE

AIRSYNCBASE_LATITUDE

AIRSYNCBASE_LATITUDE

AIRSYNCBASE_LONGITUDE

AIRSYNCBASE_LONGITUDE

AIRSYNCBASE_ACCURACY

AIRSYNCBASE_ACCURACY

AIRSYNCBASE_ALTITUDE

AIRSYNCBASE_ALTITUDE

AIRSYNCBASE_ALTITUDEACCURACY

AIRSYNCBASE_ALTITUDEACCURACY

AIRSYNCBASE_LOCATIONURI

AIRSYNCBASE_LOCATIONURI

AIRSYNCBASE_INSTANCEID

AIRSYNCBASE_INSTANCEID

BODYPREF_TYPE_PLAIN

BODYPREF_TYPE_PLAIN

BODYPREF_TYPE_HTML

BODYPREF_TYPE_HTML

BODYPREF_TYPE_RTF

BODYPREF_TYPE_RTF

BODYPREF_TYPE_MIME

BODYPREF_TYPE_MIME

PROVISION_PROVISION

PROVISION_PROVISION

PROVISION_POLICIES

PROVISION_POLICIES

PROVISION_POLICY

PROVISION_POLICY

PROVISION_POLICYTYPE

PROVISION_POLICYTYPE

PROVISION_POLICYKEY

PROVISION_POLICYKEY

PROVISION_DATA

PROVISION_DATA

PROVISION_STATUS

PROVISION_STATUS

PROVISION_REMOTEWIPE

PROVISION_REMOTEWIPE

PROVISION_EASPROVISIONDOC

PROVISION_EASPROVISIONDOC

POLICYTYPE_XML

POLICYTYPE_XML

POLICYTYPE_WBXML

POLICYTYPE_WBXML

FLAG_NEWMESSAGE

FLAG_NEWMESSAGE

FOLDER_TYPE_OTHER

FOLDER_TYPE_OTHER

FOLDER_TYPE_INBOX

FOLDER_TYPE_INBOX

FOLDER_TYPE_DRAFTS

FOLDER_TYPE_DRAFTS

FOLDER_TYPE_WASTEBASKET

FOLDER_TYPE_WASTEBASKET

FOLDER_TYPE_SENTMAIL

FOLDER_TYPE_SENTMAIL

FOLDER_TYPE_OUTBOX

FOLDER_TYPE_OUTBOX

FOLDER_TYPE_TASK

FOLDER_TYPE_TASK

FOLDER_TYPE_APPOINTMENT

FOLDER_TYPE_APPOINTMENT

FOLDER_TYPE_CONTACT

FOLDER_TYPE_CONTACT

FOLDER_TYPE_NOTE

FOLDER_TYPE_NOTE

FOLDER_TYPE_JOURNAL

FOLDER_TYPE_JOURNAL

FOLDER_TYPE_USER_MAIL

FOLDER_TYPE_USER_MAIL

FOLDER_TYPE_USER_APPOINTMENT

FOLDER_TYPE_USER_APPOINTMENT

FOLDER_TYPE_USER_CONTACT

FOLDER_TYPE_USER_CONTACT

FOLDER_TYPE_USER_TASK

FOLDER_TYPE_USER_TASK

FOLDER_TYPE_USER_JOURNAL

FOLDER_TYPE_USER_JOURNAL

FOLDER_TYPE_USER_NOTE

FOLDER_TYPE_USER_NOTE

FOLDER_TYPE_UNKNOWN

FOLDER_TYPE_UNKNOWN

FOLDER_TYPE_RECIPIENT_CACHE

FOLDER_TYPE_RECIPIENT_CACHE

FOLDER_TYPE_DUMMY

FOLDER_TYPE_DUMMY

CHANGE_ORIGIN_PIM

CHANGE_ORIGIN_PIM

CHANGE_ORIGIN_SERVER

CHANGE_ORIGIN_SERVER

CHANGE_ORIGIN_NA

CHANGE_ORIGIN_NA

RWSTATUS_NA

RWSTATUS_NA

RWSTATUS_OK

RWSTATUS_OK

RWSTATUS_PENDING

RWSTATUS_PENDING

RWSTATUS_WIPED

RWSTATUS_WIPED

GAL_DISPLAYNAME

GAL_DISPLAYNAME

GAL_PHONE

GAL_PHONE

GAL_OFFICE

GAL_OFFICE

GAL_TITLE

GAL_TITLE

GAL_COMPANY

GAL_COMPANY

GAL_ALIAS

GAL_ALIAS

GAL_FIRSTNAME

GAL_FIRSTNAME

GAL_LASTNAME

GAL_LASTNAME

GAL_HOMEPHONE

GAL_HOMEPHONE

GAL_MOBILEPHONE

GAL_MOBILEPHONE

GAL_EMAILADDRESS

GAL_EMAILADDRESS

GAL_PICTURE

GAL_PICTURE

GAL_STATUS

GAL_STATUS

GAL_DATA

GAL_DATA

REQUEST_TYPE_SYNC

REQUEST_TYPE_SYNC

REQUEST_TYPE_FOLDERSYNC

REQUEST_TYPE_FOLDERSYNC

CHANGE_TYPE_CHANGE

CHANGE_TYPE_CHANGE

CHANGE_TYPE_DELETE

CHANGE_TYPE_DELETE

CHANGE_TYPE_FLAGS

CHANGE_TYPE_FLAGS

CHANGE_TYPE_MOVE

CHANGE_TYPE_MOVE

CHANGE_TYPE_FOLDERSYNC

CHANGE_TYPE_FOLDERSYNC

CHANGE_TYPE_SOFTDELETE

CHANGE_TYPE_SOFTDELETE

CHANGE_TYPE_DRAFT

CHANGE_TYPE_DRAFT

CHANGE_REPLY_STATE

CHANGE_REPLY_STATE

CHANGE_REPLYALL_STATE

CHANGE_REPLYALL_STATE

CHANGE_FORWARD_STATE

CHANGE_FORWARD_STATE

RM_SUPPORT

RM_SUPPORT

RM_TEMPLATEID

RM_TEMPLATEID

CLASS_EMAIL

CLASS_EMAIL

CLASS_CONTACTS

CLASS_CONTACTS

CLASS_CALENDAR

CLASS_CALENDAR

CLASS_TASKS

CLASS_TASKS

CLASS_NOTES

CLASS_NOTES

CLASS_SMS

CLASS_SMS

FILTERTYPE_ALL

FILTERTYPE_ALL

FILTERTYPE_1DAY

FILTERTYPE_1DAY

FILTERTYPE_3DAYS

FILTERTYPE_3DAYS

FILTERTYPE_1WEEK

FILTERTYPE_1WEEK

FILTERTYPE_2WEEKS

FILTERTYPE_2WEEKS

FILTERTYPE_1MONTH

FILTERTYPE_1MONTH

FILTERTYPE_3MONTHS

FILTERTYPE_3MONTHS

FILTERTYPE_6MONTHS

FILTERTYPE_6MONTHS

FILTERTYPE_INCOMPLETETASKS

FILTERTYPE_INCOMPLETETASKS

PROVISIONING_FORCE

PROVISIONING_FORCE

PROVISIONING_LOOSE

PROVISIONING_LOOSE

PROVISIONING_NONE

PROVISIONING_NONE

FOLDER_ROOT

FOLDER_ROOT

VERSION_TWOFIVE

VERSION_TWOFIVE

VERSION_TWELVE

VERSION_TWELVE

VERSION_TWELVEONE

VERSION_TWELVEONE

VERSION_FOURTEEN

VERSION_FOURTEEN

VERSION_FOURTEENONE

VERSION_FOURTEENONE

VERSION_SIXTEEN

VERSION_SIXTEEN

MIME_SUPPORT_NONE

MIME_SUPPORT_NONE

MIME_SUPPORT_SMIME

MIME_SUPPORT_SMIME

MIME_SUPPORT_ALL

MIME_SUPPORT_ALL

IMAP_FLAG_REPLY

IMAP_FLAG_REPLY

IMAP_FLAG_FORWARD

IMAP_FLAG_FORWARD

RESOLVE_RESULT_GAL

RESOLVE_RESULT_GAL

RESOLVE_RESULT_ADDRESSBOOK

RESOLVE_RESULT_ADDRESSBOOK

AUTH_REASON_USER_DENIED

AUTH_REASON_USER_DENIED

AUTH_REASON_DEVICE_DENIED

AUTH_REASON_DEVICE_DENIED

ALL_GHOSTED

ALL_GHOSTED

LIBRARY_VERSION

LIBRARY_VERSION

Properties

$encoder

$encoder : \Horde_ActiveSync_Wbxml_Encoder

The Wbxml encoder.

Type

\Horde_ActiveSync_Wbxml_Encoder

$decoder

$decoder : \Horde_ActiveSync_Wbxml_Decoder

The Wbxml decoder.

Type

\Horde_ActiveSync_Wbxml_Decoder

$state

$state : \Horde_ActiveSync_State_Base

The state object.

Type

\Horde_ActiveSync_State_Base

$request

$request : \Horde_Controller_Reqeust_Http

The HTTP request object.

Type

\Horde_Controller_Reqeust_Http

$driver

$driver : \Horde_ActiveSync_Driver_Base

The backend driver object.

Type

\Horde_ActiveSync_Driver_Base

$provisioning

$provisioning : boolean|string

Provisioning support: True, False, or 'loose'

Type

boolean|string

$multipart

$multipart : boolean

Indicate this is a multipart request.

Type

boolean

$certPath

$certPath : string

Local path to the certificate bundle.

Type

string

$device

$device : \Horde_ActiveSync_Device

The current device object.

Type

\Horde_ActiveSync_Device

$logger

$logger : \Horde_ActiveSync_Log_Logger

The logger object.

Type

\Horde_ActiveSync_Log_Logger

$_logger

$_logger : \Horde_Log_Logger

The logger for this class.

Type

\Horde_Log_Logger

$_provisioning

$_provisioning : string

Provisioning support

Type

string

$_maxVersion

$_maxVersion : float

Highest version to support.

Type

float

$_version

$_version : float

The actual version we are supporting.

Type

float

$_multipart

$_multipart : boolean

Multipart support?

Type

boolean

$_compression

$_compression : boolean

Support gzip compression of certain data parts?

Type

boolean

$_get

$_get : array

Local cache of Get variables/decoded base64 uri

Type

array

$_certPath

$_certPath : string

Path to root certificate bundle

Type

string

$_globalError

$_globalError : boolean

Global error flag.

Type

boolean

$_procid

$_procid : integer

Process id (used in logging).

Type

integer

$_needMsRp

$_needMsRp : boolean

Flag to indicate we need to update the device version.

Type

boolean

$_supportedVersions

$_supportedVersions : array

Supported EAS versions.

Type

array

Methods

messageFactory()

messageFactory(string  $message) : \Horde_ActiveSync_Message_Base

Factory method for creating Horde_ActiveSync_Message objects.

Parameters

string $message

The message type.

Returns

\Horde_ActiveSync_Message_Base

The concrete message object.

__construct()

__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

Parameters

\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.

Returns

\Horde_ActiveSync

The ActiveSync server object.

getCollectionsObject()

getCollectionsObject() : \Horde_ActiveSync_Collections

Return a collections singleton.

Returns

\Horde_ActiveSync_Collections

getSyncCache()

getSyncCache() : \Horde_ActiveSync_SyncCache

Return a new, fully configured SyncCache.

Returns

\Horde_ActiveSync_SyncCache

authenticate()

authenticate(\Horde_ActiveSync_Credentials  $credentials) : boolean

Authenticate to the backend.

Parameters

\Horde_ActiveSync_Credentials $credentials

The credentials object.

Throws

\Horde_ActiveSync_Exception

Returns

boolean —

True on successful authentication to the backend.

setSupportedVersion()

setSupportedVersion(float  $version) 

Allow to force the highest version to support.

Parameters

float $version

The highest version

setRootCertificatePath()

setRootCertificatePath(string  $path) 

Set the local path to the root certificate bundle.

Parameters

string $path

The local path to the bundle.

__get()

__get(string  $property) : mixed

Getter

Parameters

string $property

The property to return.

Returns

mixed —

The value of the requested property.

_wrapLogger()

_wrapLogger(\Horde_Log_Logger  $logger) 

Parameters

\Horde_Log_Logger $logger

setProvisioning()

setProvisioning(  $provision) 

Setter for provisioning support

Parameters

$provision

provisioningRequired()

provisioningRequired() 

Send the headers indicating that provisioning is required.

handleRequest()

handleRequest(string  $cmd, string  $devId) : string|boolean

The heart of the server. Dispatch a request to the appropriate request handler.

Parameters

string $cmd

The command we are requesting.

string $devId

The device id making the request. @deprecated

Throws

\Horde_ActiveSync_Exception
\Horde_ActiveSync_Exception_InvalidRequest
\Horde_ActiveSync_PermissionDenied

Returns

string|boolean —

false if failed, true if succeeded and response content is wbxml, otherwise the content-type string to send in the response.

activeSyncHeader()

activeSyncHeader() : array

Send the MS_Server-ActiveSync header.

Returns

array —

Returns an array of the headers that were sent. @since 2.39.0

versionHeader()

versionHeader() : string

Send the protocol versions header.

Returns

string —

The header that was sent. @since 2.39.0

getSupportedVersions()

getSupportedVersions() : string

Return supported versions in a comma delimited string suitable for sending as the MS-ASProtocolVersions header.

Returns

string

commandsHeader()

commandsHeader() : string

Send protocol commands header.

Returns

string —

The header that was sent. @since 2.39.0

getSupportedCommands()

getSupportedCommands() : string

Return the supported commands in a comma delimited string suitable for sending as the MS-ASProtocolCommands header.

Returns

string

provisionHeader()

provisionHeader() 

Send provision header

getPolicyKey()

getPolicyKey() : integer

Obtain the policy key header from the request.

Returns

integer —

The policy key or '0' if not set.

getProtocolVersion()

getProtocolVersion() : string

Obtain the ActiveSync protocol version requested by the client headers.

Returns

string —

The EAS version requested by the client.

getGetVars()

getGetVars() : array

Return the GET variables passed from the device, decoding from base64 if needed.

Returns

array —

A hash of get variables => values.

checkGlobalError()

checkGlobalError() : mixed

Return any global errors that occured during initial connection.

Returns

mixed —

A Horde_ActiveSync_Status:: constant of boolean false if no errors.

contentTypeHeader()

contentTypeHeader(  $content_type = null) 

Send the content type header.

Parameters

$content_type

getMIMETruncSize()

getMIMETruncSize(integer  $truncation) : integer|boolean

Return the number of bytes corresponding to the requested trunction constant. This applies to MIMETRUNCATION only.

Parameters

integer $truncation

The constant.

Returns

integer|boolean —

Either the size, in bytes, to truncate or falso if no truncation.

getTruncSize()

getTruncSize(integer  $truncation) : integer|boolean

Return the number of bytes corresponding to the requested trunction constant.

Parameters

integer $truncation

The constant.

Returns

integer|boolean —

Either the size, in bytes, to truncate or falso if no truncation.

_setLogger()

_setLogger(array  $options) 

Instantiate the logger from the factory and inject into all needed objects.

Parameters

array $options

[description]

_handleDevice()

_handleDevice(string  $devId) : boolean

Handle device checks. Takes into account permissions and restrictions via various callback methods.

Parameters

string $devId

The client provided device id.

Throws

\Horde_ActiveSync_Exception,

Horde_Exception_AuthenticationFailure

Returns

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.

_handleOptionsRequest()

_handleOptionsRequest() 

Send the OPTIONS request response headers.