$_cmdName
$_cmdName : string
Name of the command.
Must be overwritten by a sub class.
The Horde_SyncMl_Command_Sync class provides a SyncML implementation of the Sync command as defined in SyncML Representation Protocol, version 1.1, section 5.5.15.
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-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.
$_outputHandler : \Horde_SyncMl_XmlOutput
A Horde_SyncMl_XmlOutput instance responsible for generating the output.
$_curItem : \Horde_SyncMl_SyncElement
Horde_SyncMl_SyncElement object for the currently parsed sync command.
__construct(\Horde_SyncMl_XmlOutput $outputHandler)
Constructor.
\Horde_SyncMl_XmlOutput | $outputHandler | A Horde_SyncMl_XmlOutput object. |
startElement(string $uri, string $element, array $attrs)
Start element handler for the XML parser, delegated from Horde_SyncMl_ContentHandler::startElement().
string | $uri | The namespace URI of the element. |
string | $element | The element tag name. |
array | $attrs | A hash with the element's attributes. |
factory(string $command, \Horde_SyncMl_XmlOutput $outputHandler) : \Horde_SyncMl_Command
Attempts to return a concrete Horde_SyncMl_Command instance based on $command.
string | $command | The type of the concrete Horde_SyncMl_Comment subclass to return. |
\Horde_SyncMl_XmlOutput | $outputHandler | A Horde_SyncMl_XmlOutput object. |
The newly created concrete Horde_SyncMl_Command instance, or false on error.
_outputStatus(\Horde_SyncMl_SyncElement $element)
Creates the <Status> response for one Add|Replace|Delete SyncElement.
\Horde_SyncMl_SyncElement | $element | The element for which the status is to be created. |