[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch

title

Body

[close]

/vendor/symfony/config/Util/ -> XmlUtils.php (summary)

(no description)

File Size: 243 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

XmlUtils:: (5 methods):
  __construct()
  loadFile()
  convertDomElementToArray()
  phpize()
  getXmlErrors()


Class: XmlUtils  - X-Ref

XMLUtils is a bunch of utility methods to XML operations.

This class contains static methods only and is not meant to be instantiated.

__construct()   X-Ref
This class should not be instantiated.


loadFile($file, $schemaOrCallable = null)   X-Ref
Loads an XML file.

param: string               $file             An XML file path
param: string|callable|null $schemaOrCallable An XSD schema file path, a callable, or null to disable validation
return: \DOMDocument

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>)

param: \DOMElement $element     A \DOMElement instance
param: bool        $checkPrefix Check prefix in an element or an attribute name
return: array A PHP array

phpize($value)   X-Ref
Converts an xml value to a PHP type.

param: mixed $value
return: mixed

getXmlErrors($internalErrors)   X-Ref
No description



Generated: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1