PHP Класс Horde_ActiveSync_Connector_Exporter_Sync, horde

Автор: Michael J Rubinsky ([email protected])
Наследование: extends Horde_ActiveSync_Connector_Exporter_Base
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_currentCollection array Currently syncing collection.
$_seenObjects array Local cache of object ids we have already dealt with.

Открытые методы

Метод Описание
fetchIds ( $driver, array $collection ) Send the SYNC_FETCH response for any items requested by the client.
messageChange ( string $id, Horde_ActiveSync_Message_Base $message ) Send a message change over the wbxml stream
messageDeletion ( string $id, boolean $soft = false ) Stream a message deletion to the client.
messageMove ( Horde_ActiveSync_Message_Base $message ) Move a message to a different folder.
missingRemove ( array $collection ) Send the SYNC_REMOVE response for any items deleted from the client but were unable to be removed on the server. Usually due to not being found.
modifyFailures ( array $collection ) Send the SYNC_MODIFY response for any items modified from the client that require this response. Basically any items that have AirSyncBaseAttachments changes.
sendNextChange ( ) : boolean | Horde_Exception Sends the next change in the set to the client.
setChanges ( array $changes, array $collection = null ) Set the changes to send to the client.
syncAddResponse ( array $collection ) Send the SYNC_ADD response for any items added from the client.
syncFolderId ( array $collection ) Send the SYNC_FOLDERID value.
syncFolderType ( array $collection ) Send the SYNC_FOLDERTYPE node if needed.
syncKey ( array $collection ) Send the SYNC_SYNCKEY response appropriate for this response.
syncModifiedResponse ( array $collection ) Send the SYNC_MODIFY response for each modified item that requires this response.
syncStatus ( $statusCode ) Send the SYNC_STATUS value.

Защищенные методы

Метод Описание
_getNextChange ( )
_sendEas16MessageResponse ( string $serverid, array $collection ) Sends the appropriate message object reply within a SYNC_ADD or SYNC_MODIFY block in a SYNC_REPLIES block for EAS >= 16 clients.
_sendNextChange ( ) Sends the next message change to the client.

Описание методов

_getNextChange() защищенный Метод

protected _getNextChange ( )

_sendEas16MessageResponse() защищенный Метод

Sends the appropriate message object reply within a SYNC_ADD or SYNC_MODIFY block in a SYNC_REPLIES block for EAS >= 16 clients.
protected _sendEas16MessageResponse ( string $serverid, array $collection )
$serverid string The serverid of the message being sent.
$collection array The collection array.

_sendNextChange() защищенный Метод

Sends the next message change to the client.
protected _sendNextChange ( )

fetchIds() публичный Метод

Send the SYNC_FETCH response for any items requested by the client.
public fetchIds ( $driver, array $collection )
$collection array The collection array.

messageChange() публичный Метод

Send a message change over the wbxml stream
public messageChange ( string $id, Horde_ActiveSync_Message_Base $message )
$id string The uid of the message
$message Horde_ActiveSync_Message_Base The message object

messageDeletion() публичный Метод

Stream a message deletion to the client.
public messageDeletion ( string $id, boolean $soft = false )
$id string The uid of the message we are deleting.
$soft boolean If true, send a SOFTDELETE, otherwise a REMOVE.

messageMove() публичный Метод

Move a message to a different folder.
public messageMove ( Horde_ActiveSync_Message_Base $message )
$message Horde_ActiveSync_Message_Base The message

missingRemove() публичный Метод

Send the SYNC_REMOVE response for any items deleted from the client but were unable to be removed on the server. Usually due to not being found.
public missingRemove ( array $collection )
$collection array The collection array.

modifyFailures() публичный Метод

Send the SYNC_MODIFY response for any items modified from the client that require this response. Basically any items that have AirSyncBaseAttachments changes.
public modifyFailures ( array $collection )
$collection array The collection array.

sendNextChange() публичный Метод

Sends the next change in the set to the client.
public sendNextChange ( ) : boolean | Horde_Exception
Результат 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.

setChanges() публичный Метод

Set the changes to send to the client.
public setChanges ( array $changes, array $collection = null )
$changes array The changes array returned from the collection handler.
$collection array The collection we are currently syncing.

syncAddResponse() публичный Метод

Send the SYNC_ADD response for any items added from the client.
public syncAddResponse ( array $collection )
$collection array The collection array.

syncFolderId() публичный Метод

Send the SYNC_FOLDERID value.
public syncFolderId ( array $collection )
$collection array The collection array.

syncFolderType() публичный Метод

Send the SYNC_FOLDERTYPE node if needed.
public syncFolderType ( array $collection )
$collection array The collection array.

syncKey() публичный Метод

Send the SYNC_SYNCKEY response appropriate for this response.
public syncKey ( array $collection )
$collection array The collection array.

syncModifiedResponse() публичный Метод

@see self::syncAddResponse()
public syncModifiedResponse ( array $collection )
$collection array The collection array.

syncStatus() публичный Метод

Send the SYNC_STATUS value.
public syncStatus ( $statusCode )

Описание свойств

$_currentCollection защищенное свойство

Currently syncing collection.
protected array $_currentCollection
Результат array

$_seenObjects защищенное свойство

Local cache of object ids we have already dealt with.
protected array $_seenObjects
Результат array