\Horde_ActiveSync_Connector_Exporter_Base

Horde_ActiveSync_Connector_Exporter_Base:: Base class contains common code for outputing common blocks of WBXML data in server responses.

Summary

Methods
Properties
Constants
__construct()
setChanges()
sendNextChange()
No public properties found
No constants found
No protected methods found
$_encoder
$_changes
$_step
$_as
$_procid
N/A
No private methods found
No private properties found
N/A

Properties

$_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.