$output
$output :
The outputhandler to whom the XML is passed: like Horde_Xml_Wbxml_Encoder
This class creates the actual XML data and passes it on to a ContentHandler for optional WBXML encoding.
Each member public function creates one type of SyncML artefact (like a Status response). Currently some of the information is retrieved from state. Maybe remove these dependencies (by providing the data as parameter) for an even cleaner implementation.
The Horde_SyncMl_XmlOutput class takes automatically care of creating a unique CmdID for each command created.
Copyright 2006-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
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
string | $command | The Sync command (Add, Delete, Replace). |
string | $content | The actual object content. |
string | $contentType | The content's MIME type. |
string | $encodingType | The content encoding of the object. |
string | $cuid | The client's object UID. |
string | $suid | The server's object UID. |
integer | $contentSize | The total content size. |
boolean | $moreData | Add MoreData tag when splitting messages. |
The CmdID used for this command.
_writeDataStore(string $sourceref, string $mimetype, string $version, \Horde_Xml_Wbxml_ContentHandler $output, array $additionaltypes = array())
Writes DevInf data for one DataStore.
string | $sourceref | Data for |
string | $mimetype | Data for |
string | $version | Data for |
\Horde_Xml_Wbxml_ContentHandler | $output | Content handler that will received the output. |
array | $additionaltypes | Array of additional types for |