PHP Класс Horde_Kolab_Format_Xml_Parser, horde

Copyright 2007-2009 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.
Автор: Gunnar Wrobel ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( DOMDocument $document ) Constructor.
getDocument ( ) : DOMDocument Simply return the DOMDocument without parsing any data.
parse ( string $input, array $options = [] ) : DOMDocument Load an object based on the given XML string.

Приватные методы

Метод Описание
_parseXml ( string $input, array $options = [] ) : DOMDocument Parse the XML string. The root node is returned on success.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( DOMDocument $document )
$document DOMDocument The XML parser.

getDocument() публичный Метод

Simply return the DOMDocument without parsing any data.
public getDocument ( ) : DOMDocument
Результат DOMDocument The DOM document.

parse() публичный Метод

Load an object based on the given XML string.
public parse ( string $input, array $options = [] ) : DOMDocument
$input string The XML of the message as string.
$options array Additional options when parsing the XML.
- relaxed: Relaxed error checking (default: false)
Результат DOMDocument The DOM document.