Class Horde_SyncMl_Command
The Horde_SyncMl_Command class provides a base class for handling all
A SyncML command is a protocol primitive. Each SyncML command specifies to a recipient an individual operation that is to be performed.
The Horde_SyncMl_Command objects are hooked into the XML parser of the Horde_SyncMl_ContentHandler class and are reponsible for parsing a single command inside the SyncBody section of a SyncML message. All actions that must be executed for a single SyncML command are handled by these objects, by means of the handleCommand() method.
Copyright 2003-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.
Direct known subclasses
Horde_SyncMl_Command_Alert, Horde_SyncMl_Command_Final, Horde_SyncMl_Command_Get, Horde_SyncMl_Command_Map, Horde_SyncMl_Command_Put, Horde_SyncMl_Command_Replace, Horde_SyncMl_Command_Status, Horde_SyncMl_Command_Sync, Horde_SyncMl_Command_SyncHdrIndirect known subclasses
Horde_SyncMl_Command_ResultsAuthor: Anthony Mills amills@pyramid6.com
Author: Jan Schneider jan@horde.org
Located at Horde/SyncMl/Command.php
public
|
|
public
|
#
startElement( string $uri, string $element, array $attrs )
Start element handler for the XML parser, delegated from Horde_SyncMl_ContentHandler::startElement(). |
public
|
#
endElement( string $uri, string $element )
End element handler for the XML parser, delegated from Horde_SyncMl_ContentHandler::endElement(). |
public
|
#
characters( string $str )
Character data handler for the XML parser, delegated from Horde_SyncMl_ContentHandler::characters(). |
public
string
|
|
public
|
#
handleCommand( mixed $debug = false )
This method is supposed to implement the actual business logic of the command once the XML parsing is complete. |
public
|
#
factory( string $command,
Attempts to return a concrete Horde_SyncMl_Command instance based on $command. |