Documentation

Horde_ActiveSync_Folder_Collection extends Horde_ActiveSync_Folder_Base
in package
implements Serializable

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

Tags
license

http://www.horde.org/licenses/gpl GPLv2

copyright

2012-2020 Horde LLC (http://www.horde.org)

author

Michael J Rubinsky mrubinsk@horde.org

Interfaces, Classes, Traits and Enums

Serializable

Table of Contents

VERSION  = 1
$haveInitialSync  : bool
Flag for indicating we have an initial sync for this collection.
$_class  : string
The collection class.
$_lastSinceDate  : int
Timestamp for the last sincedate used for SOFTDELETE.
$_serverid  : string
The backend server id for this folder.
$_softDelete  : int
Timestamp for the last time we performed a SOFTDELETE
$_status  : array<string|int, mixed>
The folder's current internal property state.
__construct()  : mixed
Const'r
__toString()  : string
Convert the instance into a string.
collectionClass()  : string
Return the collection class for this collection.
getSoftDeleteTimes()  : array<string|int, mixed>
Return the softdelete timestamps.
serialize()  : string
Serialize this object.
serverid()  : string
Return the serverid for this collection.
setServerId()  : mixed
Set a new value for the serverid.
setSoftDeleteTimes()  : mixed
Set the last softdelete timestamps used.
setStatus()  : mixed
Set the status for this collection.
unserialize()  : mixed
Reconstruct the object from serialized data.
updateState()  : mixed
Updates the internal UID cache, and clears the internal update/deleted/changed cache.

Constants

Properties

$haveInitialSync

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

public bool $haveInitialSync = \false

$_class

The collection class.

protected string $_class

$_lastSinceDate

Timestamp for the last sincedate used for SOFTDELETE.

protected int $_lastSinceDate = 0

$_serverid

The backend server id for this folder.

protected string $_serverid

$_softDelete

Timestamp for the last time we performed a SOFTDELETE

protected int $_softDelete = 0

$_status

The folder's current internal property state.

protected array<string|int, mixed> $_status = array()

Methods

__construct()

Const'r

public __construct(string $serverid, string $class[, array<string|int, mixed> $status = array() ]) : mixed
Parameters
$serverid : string

The backend serverid of this folder.

$class : string

The collection class.

$status : array<string|int, mixed> = array()

Internal folder state.

Return values
mixed

__toString()

Convert the instance into a string.

public __toString() : string
Return values
string

The string representation for this instance.

collectionClass()

Return the collection class for this collection.

public collectionClass() : string
Return values
string

The collection class.

getSoftDeleteTimes()

Return the softdelete timestamps.

public getSoftDeleteTimes() : array<string|int, mixed>
Return values
array<string|int, mixed>

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

serialize()

Serialize this object.

public serialize() : string
Return values
string

The serialized data.

serverid()

Return the serverid for this collection.

public serverid() : string
Return values
string

The serverid.

setServerId()

Set a new value for the serverid.

public setServerId(string $id) : mixed
Parameters
$id : string

The new id.

Tags
since
2.4.0
todo

For H6 make these all __get/__set calls.

Return values
mixed

setSoftDeleteTimes()

Set the last softdelete timestamps used.

public setSoftDeleteTimes(long $sincedate, long $ts) : mixed
Parameters
$sincedate : long

The sincedate used in the last softdelete check.

$ts : long

Time the softdelete check was performed.

Return values
mixed

setStatus()

Set the status for this collection.

public setStatus(array<string|int, mixed> $status) : mixed
Parameters
$status : array<string|int, mixed>
Return values
mixed

updateState()

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

public updateState() : mixed
Return values
mixed

Search results