PRODUCT_ID
PRODUCT_ID
Defines a XML value that should get a default value if missing
Kolab XML to array hash converter.
For implementing a new format type you will have to inherit this class and provide a _load/_save function.
Copyright 2007-2009 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.
$_parser : \Horde_Kolab_Format_Xml_Parser
The parser dealing with the input.
$_factory : \Horde_Kolab_Format_Factory
The factory for additional objects.
__construct(\Horde_Kolab_Format_Xml_Parser $parser, \Horde_Kolab_Format_Factory $factory, array $params = null)
Constructor
\Horde_Kolab_Format_Xml_Parser | $parser | The XML parser. |
\Horde_Kolab_Format_Factory | $factory | The factory for helper objects. |
array | $params | Any additional options. |
load(resource $xml, array $options = array()) : array
Load an object based on the given XML stream. The stream may only contain UTF-8 data.
resource | $xml | The XML stream of the message. |
array | $options | Additional options when parsing the XML. - relaxed: Relaxed error checking (default: false) |
If parsing the XML data failed.
The data array representing the object.
save(array $object, array $options = array()) : string
Convert the data to a XML stream. Strings contained in the data array may only be provided as UTF-8 data.
array | $object | The data array representing the object. |
array | $options | Additional options when writing the XML. - previous: The previous XML text (default: empty string) - relaxed: Relaxed error checking (default: false) |
If converting the data to XML failed.
The data as an XML string.
_getParser() : \Horde_Kolab_Format_Xml_Parser
Fetch the XML parser.
The parser.