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.
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__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.