$_state
$_state : \Horde_ActiveSync_State_Base
State machine
Horde_ActiveSync_Connector_Imports:: Receives Wbxml from device.
$_state : \Horde_ActiveSync_State_Base
State machine
$_as : \Horde_ActiveSync
The server object.
__construct(\Horde_ActiveSync $as)
Const'r
\Horde_ActiveSync | $as | The server object. |
init(\Horde_ActiveSync_State_Base $state, string $folderId = null, integer $flags)
Initialize the importer for this collection
\Horde_ActiveSync_State_Base | $state | The state machine. |
string | $folderId | The collection's uid. |
integer | $flags | Conflict resolution flags. |
importMessageChange(string|boolean $id, \Horde_ActiveSync_Message_Base $message, \Horde_ActiveSync_Device $device, integer $clientid, string $class = false, string $synckey = false) : array|boolean
Import a message change from the wbxml stream
string|boolean | $id | A server message id or false if a new message. |
\Horde_ActiveSync_Message_Base | $message | A message object |
\Horde_ActiveSync_Device | $device | A device descriptor |
integer | $clientid | Client id sent from client. on message addition. |
string | $class | The collection class - needed for SMS since the actual serverid will be for an email folder. @since 2.6.0 |
string | $synckey | The synckey currently being processed when processing a SYNC_MODIFY command. @since 2.31.0 |
A stat array, or an array containing the 'error' key on error, or false on duplicate addition.
importMessageDeletion(array $ids, string $class, boolean $instanceids = false) : array
Import message deletions. This may conflict if the local object has been modified.
array | $ids | Server message uids to delete |
string | $class | The server collection class. |
boolean | $instanceids | If true, $ids is a hash of instanceids => uids. @since 2.31.0 |
An array containing ids of successfully deleted messages.
importMessageMove(array $uids, string $dst, string $class = null) : array
Perform a message move initiated on the clinet.
array | $uids | The source message ids. |
string | $dst | The destination folder uid. |
string | $class | The collection class (only needed for SMS). @since 2.10.0 |
An array containing the following keys:
importFolderChange(string $uid, string $displayname, string $parent = \Horde_ActiveSync::FOLDER_ROOT, integer $type = null) : \Horde_ActiveSync_Message_Folder
Import a folder change from the wbxml stream
string | $uid | The folder uid |
string | $displayname | The folder display name |
string | $parent | The parent folder id. |
integer | $type | The EAS Folder type. @since 2.9.0 |
The new folder object.
_isConflict(string $type, string $folderid, string $id) : boolean
Check if this change conflicts with server changes This is only true in the following situations:
Changed here and changed there Changed here and deleted there Deleted here and changed there
Any other combination of operations can be done (e.g. change flags & move or move & delete)
string | $type | The type of change('change', 'delete' etc...) |
string | $folderid | The id of the folder this change is from. |
string | $id | The uid for the changed message. |