$folders
$folders : array
The folders cache: the list of current folders, keyed by their internal uid and containing 'class', 'serverid' and 'type'.
Horde_ActiveSync_SyncCache:: Wraps all functionality related to maintaining the ActiveSync SyncCache.
$_state : \Horde_ActiveSync_State_Base
The state driver
__construct(\Horde_ActiveSync_State_Base $state, string $devid, string $user, \Horde_Log_Logger $logger = null) : \Horde_ActiveSync_SyncCache
Constructor
\Horde_ActiveSync_State_Base | $state | The state driver |
string | $devid | The device id |
string | $user | The username |
\Horde_Log_Logger | $logger | The logger object |
validateCache(boolean $hb_only = false) : boolean
Validate the cache. Compares the cache timestamp with the current cache timestamp in the state backend. If the timestamps are different, some other request has modified the cache, so it should be invalidated.
boolean | $hb_only | If true, only validate the hb timestamps. @since 2.4.0 |
getCollections(boolean $requireKey = true) : array
Return all the collections in the syncCache.
boolean | $requireKey | If true, only return collections with an existing synckey in the cache. Otherwise return all collections. |
None found |
None found |
collectionExists(\stirng $collectionid) : boolean
Check for the existance of a specific collection in the cache.
\stirng | $collectionid | The collection id to search for. |
None found |
setPingableCollection(string $id)
Set a specific collection to be PINGable.
string | $id | The collection id. |
None found |
removePingableCollection( $id)
Set a collection as non-PINGable.
$id |
None found |
collectionIsPingable(string $id) : boolean
Check if a specified collection is PINGable.
string | $id | The collection id. |
None found |
setPingChangeFlag(string $id)
Set the ping change flag on a collection. Indicatates that the last PING was terminated with a change in this collection.
string | $id | The collection id. |
since | 2.3.0 |
---|
hasPingChangeFlag(string $collectionid) : boolean
Checks the status of the ping change flag. If true, the last PING request detected a change in the specified collection.
string | $collectionid | The collection id to check. |
since | 2.3.0 |
---|
resetPingChangeFlag(string $id)
Reset the specified collection's ping change flag.
string | $id | The collectionid to reset. |
since | 2.3.0 |
---|
None found |
addCollection(array $collection)
Add a new collection to the cache
array | $collection | The collection array |
None found |
removeCollection(string $id, boolean $purge = true)
Remove a collection from the cache.
string | $id | The collection id. |
boolean | $purge | If true, completely remove the collection entry otherwise, just resets the synckey. |
None found |
updateWindowSize(string $id, $windowsize)
Update the windowsize for the specified collection.
string | $id | The collection id. |
$windowsize |
None found |
updateFiltertype(string $id, integer $filtertype)
Update the filtertype for the specified collection.
string | $id | The collection id. |
integer | $filtertype | The updated filtertype. |
since | 2.26.0 |
---|
None found |
addConfirmedKey(string $key)
Add a confirmed synckey to the cache.
string | $key | The synckey to add. |
None found |
removeConfirmedKey(string $key)
Remove a confirmed sycnkey from the cache
string | $key | The synckey to remove. |
None found |
updateCollection(array $collection, array $options = array())
Update a collection in the cache.
array | $collection | The collection data to add/update. |
array | $options | Options:
|
None found |
validateCollectionsFromCache(array $collections)
Validate the collections from the cache and fill in any missing values from the folder cache.
array | $collections | A reference to an array of collections. |
None found |
since | 2.18.0 |
---|
updateFolder(\Horde_ActiveSync_Message_Folder $folder)
Update a folder entry in the cache.
\Horde_ActiveSync_Message_Folder | $folder | The folder object. |
None found |
deleteFolder(string $folder)
Remove a folder from the cache
string | $folder | The folder id to remove. |
None found |