PHP Interface Horde_Kolab_Format, horde

Copyright 2007-2010 Klarälvdalens Datakonsult AB Copyright 2010-2016 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.
显示文件 Open project: horde/horde Interface Usage Examples

Public Methods

Method Description
load ( resource $xml, array $options = [] ) : array Load an object based on the given XML stream. The stream may only contain UTF-8 data.
save ( array $object, array $options = [] ) : resource Convert the data to a XML stream. Strings contained in the data array may only be provided as UTF-8 data.

Method Details

load() public method

Load an object based on the given XML stream. The stream may only contain UTF-8 data.
public load ( resource $xml, array $options = [] ) : array
$xml resource The XML stream of the message.
$options array Additional options when parsing the XML. See the concrete parsers for additional information.
return array The data array representing the object.

save() public method

Convert the data to a XML stream. Strings contained in the data array may only be provided as UTF-8 data.
public save ( array $object, array $options = [] ) : resource
$object array The data array representing the object.
$options array Additional options when writing the XML. See the concrete parsers for additional information.
return resource The data as XML stream.