Overview

Packages

  • None
  • SyncMl

Classes

  • Horde_SyncMl
  • Horde_SyncMl_Backend
  • Horde_SyncMl_Backend_Horde
  • Horde_SyncMl_Command
  • 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_Results
  • Horde_SyncMl_Command_Status
  • Horde_SyncMl_Command_Sync
  • Horde_SyncMl_Command_SyncHdr
  • Horde_SyncMl_ContentHandler
  • Horde_SyncMl_DataStore
  • Horde_SyncMl_Device
  • Horde_SyncMl_Device_Nokia
  • Horde_SyncMl_Device_P800
  • Horde_SyncMl_Device_sync4j
  • Horde_SyncMl_Device_Sync4JMozilla
  • Horde_SyncMl_Device_Synthesis
  • Horde_SyncMl_DeviceInfo
  • Horde_SyncMl_Property
  • Horde_SyncMl_PropertyParameter
  • Horde_SyncMl_State
  • Horde_SyncMl_Sync
  • Horde_SyncMl_SyncElement
  • Horde_SyncMl_Translation
  • Horde_SyncMl_XmlOutput
  • Overview
  • Package
  • Class
  • Tree

Class Horde_SyncMl_Command_Sync

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-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.

Horde_SyncMl_Command
Extended by Horde_SyncMl_Command_Sync
Package: SyncMl
Author: Karsten Fourmont karsten@horde.org
Author: Jan Schneider jan@horde.org
Located at Horde/SyncMl/Command/Sync.php
Methods summary
public
# startElement( string $uri, string $element, array $attrs )

Start element handler for the XML parser, delegated from Horde_SyncMl_ContentHandler::startElement().

Start element handler for the XML parser, delegated from Horde_SyncMl_ContentHandler::startElement().

Parameters

$uri
The namespace URI of the element.
$element
The element tag name.
$attrs
A hash with the element's attributes.

Overrides

Horde_SyncMl_Command::startElement()
public
# endElement( string $uri, string $element )

End element handler for the XML parser, delegated from Horde_SyncMl_ContentHandler::endElement().

End element handler for the XML parser, delegated from Horde_SyncMl_ContentHandler::endElement().

Parameters

$uri
The namespace URI of the element.
$element
The element tag name.

Overrides

Horde_SyncMl_Command::endElement()
public
# handleCommand( mixed $debug = false )

Implements the actual business logic of the Sync command.

Implements the actual business logic of the Sync command.

Overrides

Horde_SyncMl_Command::handleCommand()
Methods inherited from Horde_SyncMl_Command
__construct(), characters(), factory(), getCommandName()
API documentation generated by ApiGen