Class SyncML_Command_Put

Description

The SyncML_Command_Put class provides a SyncML implementation of the Put command as defined in SyncML Representation Protocol, version 1.1, section 5.5.10.

The Put command is used to transfer data items to a recipient network device or database. The SyncML_Command_Put class handles DevInf device information sent by the client.

The data is stored in a SyncML_DeviceInfo object which is defined in Device.php and then stored in SyncML_Device as an attribute.

$Horde: framework/SyncML/SyncML/Command/Put.php,v 1.12.10.15 2009/10/01 09:21:07 jan Exp $

Copyright 2005-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /SyncML/SyncML/Command/Put.php (line 29)

SyncML_Command
   |
   --SyncML_Command_Put
Direct descendents
Class Description
 class SyncML_Command_Results The SyncML_Command_Results class provides a SyncML implementation of the Results command as defined in SyncML Representation Protocol, version 1.1, section 5.5.12.
Variable Summary
Method Summary
 void endElement (string $uri, string $element)
 void handleCommand ([ $debug = false])
 void startElement (string $uri, string $element, array $attrs)
Variables
string $_cmdName = 'Put' (line 36)

Name of the command.


Redefinition of:
SyncML_Command::$_cmdName
Name of the command, like 'Put'.

Redefined in descendants as:
string $_currentCTType (line 66)

The MIME content type as specified by the last <CTType> element like text/calendar or text/x-vcard.

<CTType> specifies the type of a supported content type.

SyncML_DataStore $_currentDS (line 56)

A SyncML_DataStore object where the information from the currently parsed <DataStore> section is saved.

<DataStore> specifies the properties of a given local datastore.

string $_currentParamName (line 98)

A property name of the currently parsed property name (PropName), like 'ROLE' for 'ATTENDEE' or 'HOME' for 'ADR'.

<ParamName> specifies supported parameters of a given content type property.

string $_currentPropName (line 87)

A property name of the currently parsed content type (CTType), like 'DTSTART' for text/calendar or 'BDAY' for text/x-vcard.

<PropName> specifies a supported property of a given content type.

string $_currentXNam (line 108)

The name of the currently parsed DevInf extension (<Ext>) as specified by the XNam element.

<XNam> specifies the name of one of the DevInf extension element types.

SyncML_DeviceInfo $_devinf (line 46)

The SyncML_DeviceInfo object where all parsed <DevInf> content is saved.

<DevInf> specifies the type of the source synchronization device.

string $_VerCT (line 77)

The version of the MIME content type in $_currentCTType as specified by the last <VerCT> element like 1.0 for text/x-vcalendar or 2.1 for text/x-vcard.

<VerCT> specifies the version of a supported content type.

Inherited Variables

Inherited from SyncML_Command

SyncML_Command::$_chars
SyncML_Command::$_cmdID
SyncML_Command::$_outputHandler
SyncML_Command::$_stack
Methods
endElement (line 142)

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

void endElement (string $uri, string $element)
  • string $uri: The namespace URI of the element.
  • string $element: The element tag name.

Redefinition of:
SyncML_Command::endElement()
End element handler for the XML parser, delegated from SyncML_ContentHandler::endElement().
handleCommand (line 251)

Implements the actual business logic of the Alert command.

void handleCommand ([ $debug = false])
  • $debug

Redefinition of:
SyncML_Command::handleCommand()
This method is supposed to implement the actual business logic of the command once the XML parsing is complete.
startElement (line 118)

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

void startElement (string $uri, string $element, array $attrs)
  • string $uri: The namespace URI of the element.
  • string $element: The element tag name.
  • array $attrs: A hash with the element's attributes.

Redefinition of:
SyncML_Command::startElement()
Start element handler for the XML parser, delegated from SyncML_ContentHandler::startElement().

Inherited Methods

Inherited From SyncML_Command

 SyncML_Command::SyncML_Command()
 SyncML_Command::characters()
 SyncML_Command::endElement()
 SyncML_Command::factory()
 SyncML_Command::getCommandName()
 SyncML_Command::handleCommand()
 SyncML_Command::startElement()

Documentation generated on Sun, 30 Jan 2011 05:20:42 +0000 by phpDocumentor 1.4.3