[ Index ] |
PHP Cross Reference of phpBB-3.3.12-deutsch |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 284 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
XmlUtils:: (6 methods):
__construct()
parse()
loadFile()
convertDomElementToArray()
phpize()
getXmlErrors()
__construct() X-Ref |
This class should not be instantiated. |
parse($content, $schemaOrCallable = null) X-Ref |
Parses an XML string. return: \DOMDocument param: string $content An XML string param: string|callable|null $schemaOrCallable An XSD schema file path, a callable, or null to disable validation |
loadFile($file, $schemaOrCallable = null) X-Ref |
Loads an XML file. return: \DOMDocument param: string $file An XML file path param: string|callable|null $schemaOrCallable An XSD schema file path, a callable, or null to disable validation |
convertDomElementToArray(\DOMElement $element, $checkPrefix = true) X-Ref |
Converts a \DOMElement object to a PHP array. The following rules applies during the conversion: * Each tag is converted to a key value or an array if there is more than one "value" * The content of a tag is set under a "value" key (<foo>bar</foo>) if the tag also has some nested tags * The attributes are converted to keys (<foo foo="bar"/>) * The nested-tags are converted to keys (<foo><foo>bar</foo></foo>) return: mixed param: \DOMElement $element A \DOMElement instance param: bool $checkPrefix Check prefix in an element or an attribute name |
phpize($value) X-Ref |
Converts an xml value to a PHP type. return: mixed param: mixed $value |
getXmlErrors($internalErrors) X-Ref |
No description |
Generated: Sun Jun 23 12:25:44 2024 | Cross-referenced by PHPXref 0.7.1 |