\Horde_SyncMl_SyncElement

The class Horde_SyncMl_Command_SyncElement stores information from the <Add>, <Delete> and <Replace> elements found inside a <Sync> command.

Instances of this class are created during the XML parsing by Horde_SyncMl_Command_Sync.

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.

Summary

Methods
Properties
Constants
__construct()
$contentType
$contentFormat
$content
$size
$cmdID
$elementType
$cuid
$responseCode
$sync
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$contentType

$contentType : string

The MIME content type of the sync command.

Type

string

$contentFormat

$contentFormat : string

Encoding format of the content as specified in the <Meta><Format> element, like 'b64'.

Type

string

$content

$content : string

The actual data content of the sync command.

Type

string

$size

$size : integer

The size of the data item of the sync command in bytes as specified by a <Size> element.

Type

integer

$cmdID

$cmdID : integer

The command ID (<CmdID>) of the sync command.

Type

integer

$elementType

$elementType : string

Name of the sync command, like 'Add'.

Type

string

$cuid

$cuid : string

The client ID for the data item processed in the sync command.

Type

string

$responseCode

$responseCode : integer

The code to be sent as status response in a <Status> element, one of the Horde_SyncMl::RESPONSE_* constants.

This is set in Horde_SyncMl_Sync::handleClientSyncItem() when "processing" the item.

Type

integer

$sync

$sync : object

The Sync object for this element is part of.

Type

object — Horde_SyncMl_Sync

Methods

__construct()

__construct(\Horde_SyncMl_Sync  $sync, string  $elementType, integer  $cmdID, integer  $size) 

Constructor.

Parameters

\Horde_SyncMl_Sync $sync
string $elementType
integer $cmdID
integer $size