Class Horde_SyncMl_XmlOutput
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-2012 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.
public
|
|
public
|
#
getOutputSize( )
The length of the output as produced by the Encoder. To limit the size of individual messages. |
public
|
|
public
&
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
outputStatus( mixed $cmdRef, mixed $cmd, mixed $data, mixed $targetRef = '', mixed $sourceRef = '', mixed $syncAnchorNext = '', mixed $syncAnchorLast = '' )
|
public
|
|
public
|
#
outputAlert( mixed $alertCode, mixed $clientDB = '', mixed $serverDB = '', mixed $lastAnchor = '', mixed $nextAnchor = '' )
|
public
|
|
public
integer
|
#
outputSyncCommand( string $command, string $content = null, string $contentType = null, string $encodingType = null, string $cuid = null, string $suid = null )
Creates a single Sync command |
public
|
|
public
|
public
mixed
|
$output
The outputhandler to whom the XML is passed: like Horde_Xml_Wbxml_Encoder |