COLLECTION_ERR_FOLDERSYNC_REQUIRED
COLLECTION_ERR_FOLDERSYNC_REQUIRED
Horde_ActiveSync_Collections:: Responsible for all functionality related to collections and managing the sync cache.
$_tempSyncCache : \Horde_ActiveSync_SyncCache
Cache a temporary syncCache.
$_cache : \Horde_ActiveSync_SyncCache
The syncCache
$_as : \Horde_ActiveSync
The ActiveSync server object.
__construct(\Horde_ActiveSync_SyncCache $cache, \Horde_ActiveSync $as)
Const'r
\Horde_ActiveSync_SyncCache | $cache | The SyncCache. |
\Horde_ActiveSync | $as | The ActiveSync server object. |
addCollection(array $collection, boolean $requireSyncKey = false)
Add a new populated collection array to the sync cache.
array | $collection | The collection array. |
boolean | $requireSyncKey | Attempt to read missing synckey from cache if true. If not found, set to 0. |
Thrown when no synckey is provided when one is specified as required, indicating the state on the client is possibly corrupt or when the serverid can not be found by the backend.
setDefaultWindowSize(integer $window, boolean $override = false)
Sets the default WINDOWSIZE.
Note that this is really a ceiling on the number of TOTAL responses that can be sent (including all collections). This method should be renamed for 3.0
integer | $window | The windowsize |
boolean | $override | If true, this value will override any client supplied value. |
updateFolderinHierarchy(\Horde_ActiveSync_Message_Folder $folder, boolean $update = false)
Update/Add a folder in the hierarchy cache.
\Horde_ActiveSync_Message_Folder | $folder | The folder object. |
boolean | $update | Update the state objects? @since 2.4.0 |
validateHierarchyChanges(\Horde_ActiveSync_Connector_Exporter_FolderSync $exporter, array $seenFolders)
Validate and perform some sanity checks on the hierarchy changes before being sent to the client.
\Horde_ActiveSync_Connector_Exporter_FolderSync | $exporter | The exporter. |
array | $seenFolders | An array of folders. |
initCollectionState(array $collection, boolean $requireSyncKey = false)
Attempt to initialize the sync state.
array | $collection | The collection array. |
boolean | $requireSyncKey | Require collection to have a synckey and throw exception if it's not present. |
pollForChanges(integer $heartbeat, integer $interval, array $options = array()) : boolean|integer
Poll the backend for changes.
integer | $heartbeat | The heartbeat lifetime to wait for changes. |
integer | $interval | The wait interval between poll iterations. |
array | $options | An options array containing any of:
|
True if changes were detected in any of the collections, false if no changes detected or a status code if failed.
getCollectionChanges(boolean $ping = false, array $ensure = array()) : array
Return any changes for the current collection.
boolean | $ping | True if this is a PING request, false otherwise. If true, we only detect that a change has occured, not the data on all of the changes. |
array | $ensure | An array of UIDs that should be sent in the current response if possible, and not put off because of a MOREAVAILABLE situation. @deprecated and no longer used. |
The changes array.