Horde_ActiveSync_Connector_Exporter_Base
in package
Horde_ActiveSync_Connector_Exporter_Base:: Base class contains common code for outputing common blocks of WBXML data in server responses.
Tags
Table of Contents
- $_as : Horde_ActiveSync
- The ActiveSync server object.
- $_changes : array<string|int, mixed>
- Local cache of changes to send.
- $_encoder : Horde_ActiveSync_Wbxml_Encoder
- The wbxml encoder
- $_procid : int
- Process id for logging.
- $_step : int
- Counter of changes sent.
- __construct() : Horde_ActiveSync_Connector_Exporter
- Const'r
- sendNextChange() : bool|Horde_Exception
- Sends the next change in the set to the client.
- setChanges() : mixed
- Set the changes to send to the client.
Properties
$_as
The ActiveSync server object.
protected
Horde_ActiveSync
$_as
$_changes
Local cache of changes to send.
protected
array<string|int, mixed>
$_changes
= array()
$_encoder
The wbxml encoder
protected
Horde_ActiveSync_Wbxml_Encoder
$_encoder
$_procid
Process id for logging.
protected
int
$_procid
$_step
Counter of changes sent.
protected
int
$_step
= 0
Methods
__construct()
Const'r
public
__construct(Horde_ActiveSync $as[, Horde_ActiveSync_Wbxml_Encoder $encoder = null ]) : Horde_ActiveSync_Connector_Exporter
Parameters
- $as : Horde_ActiveSync
-
The ActiveSync server.
- $encoder : Horde_ActiveSync_Wbxml_Encoder = null
-
The encoder
Return values
Horde_ActiveSync_Connector_Exporter —sendNextChange()
Sends the next change in the set to the client.
public
abstract sendNextChange() : bool|Horde_Exception
Return values
bool|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.
setChanges()
Set the changes to send to the client.
public
setChanges(array<string|int, mixed> $changes[, array<string|int, mixed> $collection = null ]) : mixed
Parameters
- $changes : array<string|int, mixed>
-
The changes array returned from the collection handler.
- $collection : array<string|int, mixed> = null
-
The collection we are currently syncing.