\Horde_ActiveSync_Connector_Exporter_FolderSync

Horde_ActiveSync_Connector_Exporter_FolderSync:: Responsible for outputing blocks of WBXML responses in FOLDER_SYNC responses.

Summary

Methods
Properties
Constants
__construct()
setChanges()
sendNextChange()
folderChange()
folderDeletion()
$changed
$deleted
$count
No constants found
_sendNextFolderSyncChange()
$_encoder
$_changes
$_step
$_as
$_procid
N/A
No private methods found
No private properties found
N/A

Properties

$changed

$changed : array

Array of folder objects that have changed.

Used when exporting folder structure changes since they are not streamed from this object.

Type

array

$deleted

$deleted : array

Array of folder ids that have been deleted on the server.

Type

array

$count

$count : integer

Tracks the total number of folder changes

Type

integer

$_changes

$_changes : array

Local cache of changes to send.

Type

array

$_step

$_step : integer

Counter of changes sent.

Type

integer

$_procid

$_procid : integer

Process id for logging.

Type

integer

Methods

__construct()

__construct(\Horde_ActiveSync  $as, \Horde_ActiveSync_Wbxml_Encoder  $encoder = null) : \Horde_ActiveSync_Connector_Exporter

Const'r

Parameters

\Horde_ActiveSync $as

The ActiveSync server.

\Horde_ActiveSync_Wbxml_Encoder $encoder

The encoder

Returns

\Horde_ActiveSync_Connector_Exporter

setChanges()

setChanges(array  $changes, array  $collection = null) 

Set the changes to send to the client.

Parameters

array $changes

The changes array returned from the collection handler.

array $collection

The collection we are currently syncing.

sendNextChange()

sendNextChange() : boolean|\Horde_Exception

Sends the next change in the set to the client.

Returns

boolean|\Horde_Exception —

True if more changes can be sent false if all changes were sent, Horde_Exception if there was an error sending an item.

folderChange()

folderChange(\Horde_ActiveSync_Message_Folder  $folder) 

Add a folder change to the cache (used during FolderSync requests).

Parameters

\Horde_ActiveSync_Message_Folder $folder

folderDeletion()

folderDeletion(string  $id) 

Add a folder deletion to the cache (used during FolderSync Requests).

Parameters

string $id

The folder id

_sendNextFolderSyncChange()

_sendNextFolderSyncChange() : \@see

Sends the next folder change to the client.

Returns

\@see —

self::sendNextChange()