PHP 클래스 Horde_SyncMl_Command_Sync, horde

The Sync command is used to indicate a data synchronization operation. The command handler for the Sync command is the central class to dispatch sync messages. During parsing of the received XML, the actual sync commands (Add, Replace, Delete) from the client are stored in the $_syncElements attribute. When the output method of Horde_SyncMl_Command_Sync is called, these elements are processed and the resulting status messages created. Then the server modifications are sent back to the client by the handleSync() method which is called from within the output method. Copyright 2005-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
저자: Karsten Fourmont ([email protected])
저자: Jan Schneider ([email protected])
상속: extends Horde_SyncMl_Command
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_cmdName string Name of the command.
$_contentFormat string Encoding format of the content as specified in the element, like 'b64'.
$_contentType string The MIME content type of the currently parsed sync command as specified by the element inside a section.
$_curItem Horde_SyncMl_SyncElement Horde_SyncMl_SyncElement object for the currently parsed sync command.
$_elementType string Name of the currently parsed sync command, like 'Add'.
$_itemCmdID integer This is different from the command ID of the command itself.
$_itemMoreData boolean Whether a element has indicated that the sync command is split into several SyncML message chunks.
$_itemSize integer The size of the data item of the currently parsed sync command in bytes as specified by a element.
$_sourceURI string Source database of the command.
$_syncElements array List of all Horde_SyncMl_SyncElement objects that have parsed.
$_targetURI string Target database of the command.

공개 메소드들

메소드 설명
endElement ( string $uri, string $element ) End element handler for the XML parser, delegated from Horde_SyncMl_ContentHandler::endElement().
handleCommand ( $debug = false ) Implements the actual business logic of the Sync command.
startElement ( string $uri, string $element, array $attrs ) Start element handler for the XML parser, delegated from Horde_SyncMl_ContentHandler::startElement().

보호된 메소드들

메소드 설명
_outputStatus ( Horde_SyncMl_SyncElement $element ) Creates the response for one Add|Replace|Delete SyncElement.

메소드 상세

_outputStatus() 보호된 메소드

Creates the response for one Add|Replace|Delete SyncElement.
protected _outputStatus ( Horde_SyncMl_SyncElement $element )
$element Horde_SyncMl_SyncElement The element for which the status is to be created.

endElement() 공개 메소드

End element handler for the XML parser, delegated from Horde_SyncMl_ContentHandler::endElement().
public endElement ( string $uri, string $element )
$uri string The namespace URI of the element.
$element string The element tag name.

handleCommand() 공개 메소드

Implements the actual business logic of the Sync command.
public handleCommand ( $debug = false )

startElement() 공개 메소드

Start element handler for the XML parser, delegated from Horde_SyncMl_ContentHandler::startElement().
public startElement ( string $uri, string $element, array $attrs )
$uri string The namespace URI of the element.
$element string The element tag name.
$attrs array A hash with the element's attributes.

프로퍼티 상세

$_cmdName 보호되어 있는 프로퍼티

Name of the command.
protected string $_cmdName
리턴 string

$_contentFormat 보호되어 있는 프로퍼티

Encoding format of the content as specified in the element, like 'b64'.
protected string $_contentFormat
리턴 string

$_contentType 보호되어 있는 프로퍼티

The MIME content type of the currently parsed sync command as specified by the element inside a section.
protected string $_contentType
리턴 string

$_curItem 보호되어 있는 프로퍼티

Horde_SyncMl_SyncElement object for the currently parsed sync command.
protected Horde_SyncMl_SyncElement $_curItem
리턴 Horde_SyncMl_SyncElement

$_elementType 보호되어 있는 프로퍼티

Name of the currently parsed sync command, like 'Add'.
protected string $_elementType
리턴 string

$_itemCmdID 보호되어 있는 프로퍼티

This is different from the command ID of the command itself.
protected int $_itemCmdID
리턴 integer

$_itemMoreData 보호되어 있는 프로퍼티

Whether a element has indicated that the sync command is split into several SyncML message chunks.
protected bool $_itemMoreData
리턴 boolean

$_itemSize 보호되어 있는 프로퍼티

The size of the data item of the currently parsed sync command in bytes as specified by a element.
protected int $_itemSize
리턴 integer

$_sourceURI 보호되어 있는 프로퍼티

Source database of the command.
protected string $_sourceURI
리턴 string

$_syncElements 보호되어 있는 프로퍼티

List of all Horde_SyncMl_SyncElement objects that have parsed.
protected array $_syncElements
리턴 array

$_targetURI 보호되어 있는 프로퍼티

Target database of the command.
protected string $_targetURI
리턴 string