\Horde_ActiveSync_Folder_Base

The class contains functionality for maintaining state for a generic collection folder. This would include Appointments, Contacts, and Tasks.

Summary

Methods
Properties
Constants
__construct()
serverid()
setServerId()
collectionClass()
setStatus()
setSoftDeleteTimes()
getSoftDeleteTimes()
updateState()
$haveInitialSync
No constants found
No protected methods found
$_status
$_serverid
$_class
$_lastSinceDate
$_softDelete
N/A
No private methods found
No private properties found
N/A

Properties

$haveInitialSync

$haveInitialSync : boolean

Flag for indicating we have an initial sync for this collection.

Type

boolean

$_status

$_status : array

The folder's current internal property state.

Type

array

$_serverid

$_serverid : string

The backend server id for this folder.

Type

string

$_class

$_class : string

The collection class.

Type

string

$_lastSinceDate

$_lastSinceDate : integer

Timestamp for the last sincedate used for SOFTDELETE.

Type

integer

$_softDelete

$_softDelete : integer

Timestamp for the last time we performed a SOFTDELETE

Type

integer

Methods

__construct()

__construct(string  $serverid, string  $class, array  $status = array()) 

Const'r

Parameters

string $serverid

The backend serverid of this folder.

string $class

The collection class.

array $status

Internal folder state.

serverid()

serverid() : string

Return the serverid for this collection.

Returns

string —

The serverid.

setServerId()

setServerId(string  $id) 

Set a new value for the serverid.

Parameters

string $id

The new id.

collectionClass()

collectionClass() : string

Return the collection class for this collection.

Returns

string —

The collection class.

setStatus()

setStatus(array  $status) 

Set the status for this collection.

Parameters

array $status

setSoftDeleteTimes()

setSoftDeleteTimes(\long  $sincedate, \long  $ts) 

Set the last softdelete timestamps used.

Parameters

\long $sincedate

The sincedate used in the last softdelete check.

\long $ts

Time the softdelete check was performed.

getSoftDeleteTimes()

getSoftDeleteTimes() : array

Return the softdelete timestamps.

Returns

array —

An array with the last sincedate in the 0 element and the last timestamp in the 1 element.

updateState()

updateState() 

Updates the internal UID cache, and clears the internal update/deleted/changed cache.