프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$output | The outputhandler to whom the XML is passed: like Horde_Xml_Wbxml_Encoder |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_msg_CmdID | The CmdID provides a unique ID for each command in a syncml packet. | ||
$_uri |
메소드 | 설명 | |
---|---|---|
getOutput ( ) | The final output as procuded by the _output Encoder. Either an XML string or a WBXML string. | |
getOutputSize ( ) | The length of the output as produced by the Encoder. To limit the size of individual messages. | |
init ( &$theoutputhandler ) | ||
isWBXML ( ) | To we create wbxml or not? | |
outputAlert ( $alertCode, $clientDB = '', $serverDB = '', $lastAnchor = '', $nextAnchor = '' ) | ||
outputBodyStart ( ) | ||
outputDevInf ( $cmdRef ) | ||
outputEnd ( ) | ||
outputFinal ( ) | ||
outputGetDevInf ( ) | ||
outputHeader ( string $respURI ) | Creates a SyncHdr output. | |
outputInit ( ) | ||
outputStatus ( $cmdRef, $cmd, $data, $targetRef = '', $sourceRef = '', $syncAnchorNext = '', $syncAnchorLast = '' ) | ||
outputSyncCommand ( string $command, string $content = null, string $contentType = null, string $encodingType = null, string $cuid = null, string $suid = null, integer $contentSize = null, boolean $moreData = false ) : integer | Creates a single Sync command | |
outputSyncEnd ( ) | ||
outputSyncStart ( $clientLocURI, $serverLocURI, $numberOfChanges = null ) | ||
singleton ( ) |
메소드 | 설명 | |
---|---|---|
_outputCmdID ( ) | internal helper functions: | |
_singleEle ( $tag, $str, $uri = null ) |
Output a single |
|
_writeDataStore ( string $sourceref, string $mimetype, string $version, Horde_Xml_Wbxml_ContentHandler &$output, array $additionaltypes = [] ) | Writes DevInf data for one DataStore. |
protected _writeDataStore ( string $sourceref, string $mimetype, string $version, Horde_Xml_Wbxml_ContentHandler &$output, array $additionaltypes = [] ) | ||
$sourceref | string | Data for |
$mimetype | string | Data for |
$version | string | Data for |
$output | Horde_Xml_Wbxml_ContentHandler | Content handler that will received the output. |
$additionaltypes | array | Array of additional types for
|
public getOutput ( ) |
public getOutputSize ( ) |
public outputAlert ( $alertCode, $clientDB = '', $serverDB = '', $lastAnchor = '', $nextAnchor = '' ) |
public outputHeader ( string $respURI ) | ||
$respURI | string | The url of the server endpoint. |
public outputStatus ( $cmdRef, $cmd, $data, $targetRef = '', $sourceRef = '', $syncAnchorNext = '', $syncAnchorLast = '' ) |
public outputSyncCommand ( string $command, string $content = null, string $contentType = null, string $encodingType = null, string $cuid = null, string $suid = null, integer $contentSize = null, boolean $moreData = false ) : integer | ||
$command | string | The Sync command (Add, Delete, Replace). |
$content | string | The actual object content. |
$contentType | string | The content's MIME type. |
$encodingType | string | The content encoding of the object. |
$cuid | string | The client's object UID. |
$suid | string | The server's object UID. |
$contentSize | integer | The total content size. |
$moreData | boolean | Add MoreData tag when splitting messages. |
리턴 | integer | The CmdID used for this command. |
public outputSyncStart ( $clientLocURI, $serverLocURI, $numberOfChanges = null ) |
protected $_msg_CmdID |