PHP 클래스 Horde_ActiveSync_Connector_Exporter_Sync, horde

저자: Michael J Rubinsky ([email protected])
상속: extends Horde_ActiveSync_Connector_Exporter_Base
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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