\Horde_Kolab_Format

The Horde_Kolab_Format:: interface defines the basic properties of a Kolab format handler.

Copyright 2007-2010 Klarälvdalens Datakonsult AB Copyright 2010-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
Constants
load()
save()
VERSION
No protected methods found
N/A
No private methods found
N/A

Constants

VERSION

VERSION

The package version

Methods

load()

load(resource  $xml, array  $options = array()) : array

Load an object based on the given XML stream. The stream may only contain UTF-8 data.

Parameters

resource $xml

The XML stream of the message.

array $options

Additional options when parsing the XML. See the concrete parsers for additional information.

Throws

\Horde_Kolab_Format_Exception

Returns

array —

The data array representing the object.

save()

save(array  $object, array  $options = array()) : resource

Convert the data to a XML stream. Strings contained in the data array may only be provided as UTF-8 data.

Parameters

array $object

The data array representing the object.

array $options

Additional options when writing the XML. See the concrete parsers for additional information.

Throws

\Horde_Kolab_Format_Exception

Returns

resource —

The data as XML stream.