Property | Type | Description | |
---|---|---|---|
$_as | Horde_ActiveSync | The server object. | |
$_flags | integer | Conflict resolution flags | |
$_folderId | string | The backend specific folder id | |
$_folderUid | string | The EAS folder uid | |
$_logger | Horde_Log_Logger | Logger | |
$_procid | integer | Process id for logging. | |
$_state | Horde_ActiveSync_State_Base | State machine |
Method | Description | |
---|---|---|
__construct ( Horde_ActiveSync $as ) | Const'r | |
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 | |
importFolderDeletion ( string $uid, string $parent = Horde_ActiveSync::FOLDER_ROOT ) | Imports a folder deletion from the client. | |
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 | |
importMessageDeletion ( array $ids, string $class, boolean $instanceids = false ) : array | Import message deletions. This may conflict if the local object has been modified. | |
importMessageMove ( array $uids, string $dst, string $class = null ) : array | Perform a message move initiated on the clinet. | |
importMessageReadFlag ( integer $id, string $flag ) | Import a change in 'read' flags. This can never conflict. | |
init ( Horde_ActiveSync_State_Base $state, string $folderId = null, integer $flags ) | Initialize the importer for this collection | |
setLogger ( Horde_Log_Logger $logger ) | Setter for a logger instance |
Method | Description | |
---|---|---|
_isConflict ( string $type, string $folderid, string $id ) : boolean | Check if this change conflicts with server changes This is only true in the following situations: |
public __construct ( Horde_ActiveSync $as ) | ||
$as | Horde_ActiveSync | The server object. |
public importFolderChange ( string $uid, string $displayname, string $parent = Horde_ActiveSync::FOLDER_ROOT, integer $type = null ) : Horde_ActiveSync_Message_Folder | ||
$uid | string | The folder uid |
$displayname | string | The folder display name |
$parent | string | The parent folder id. |
$type | integer | The EAS Folder type. @since 2.9.0 |
return | Horde_ActiveSync_Message_Folder | The new folder object. |
public importFolderDeletion ( string $uid, string $parent = Horde_ActiveSync::FOLDER_ROOT ) | ||
$uid | string | The folder uid |
$parent | string | The folder id of the parent folder. |
public importMessageChange ( string | boolean $id, Horde_ActiveSync_Message_Base $message, Horde_ActiveSync_Device $device, integer $clientid, string $class = false, string $synckey = false ) : array | boolean | ||
$id | string | boolean | A server message id or false if a new message. |
$message | Horde_ActiveSync_Message_Base | A message object |
$device | Horde_ActiveSync_Device | A device descriptor |
$clientid | integer | Client id sent from client. on message addition. |
$class | string | The collection class - needed for SMS since the actual serverid will be for an email folder. @since 2.6.0 |
$synckey | string | The synckey currently being processed when processing a SYNC_MODIFY command. @since 2.31.0 |
return | array | boolean | A stat array, or an array containing the 'error' key on error, or false on duplicate addition. |
public importMessageDeletion ( array $ids, string $class, boolean $instanceids = false ) : array | ||
$ids | array | Server message uids to delete |
$class | string | The server collection class. |
$instanceids | boolean | If true, $ids is a hash of instanceids => uids. @since 2.31.0 |
return | array | An array containing ids of successfully deleted messages. |
public importMessageMove ( array $uids, string $dst, string $class = null ) : array | ||
$uids | array | The source message ids. |
$dst | string | The destination folder uid. |
$class | string | The collection class (only needed for SMS). @since 2.10.0 |
return | array | An array containing the following keys: - results: An array with old uids as keys and new uids as values. - missing: An array containing source uids that were not found on the IMAP server. |
public importMessageReadFlag ( integer $id, string $flag ) | ||
$id | integer | Server message id (The IMAP UID). |
$flag | string | The state of the /seen flag |
public setLogger ( Horde_Log_Logger $logger ) | ||
$logger | Horde_Log_Logger | The logger |
protected string $_folderId | ||
return | string |