[ Index ]

PHP Cross Reference of phpBB-3.3.9-deutsch




/vendor/symfony/dependency-injection/Loader/ -> XmlFileLoader.php (summary)

(no description)

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

Defines 1 class

XmlFileLoader:: (16 methods):

Class: XmlFileLoader  - X-Ref

XmlFileLoader loads XML files service definitions.

load($resource, $type = null)   X-Ref

supports($resource, $type = null)   X-Ref

parseParameters(\DOMDocument $xml, $file)   X-Ref
Parses parameters.

param: string $file

parseImports(\DOMDocument $xml, $file)   X-Ref
Parses imports.

param: string $file

parseDefinitions(\DOMDocument $xml, $file, $defaults)   X-Ref
Parses multiple definitions.

param: string $file

getServiceDefaults(\DOMDocument $xml, $file)   X-Ref
Get service defaults.

return: array

parseDefinition(\DOMElement $service, $file, array $defaults)   X-Ref
Parses an individual Definition.

param: string $file
return: Definition|null

parseFileToDOM($file)   X-Ref
Parses a XML file to a \DOMDocument.

param: string $file Path to a file
return: \DOMDocument

processAnonymousServices(\DOMDocument $xml, $file, $defaults)   X-Ref
Processes anonymous services.

param: string $file
param: array  $defaults

getArgumentsAsPhp(\DOMElement $node, $name, $file, $isChildDefinition = false)   X-Ref
Returns arguments as valid php types.

param: string $name
param: string $file
return: mixed

getChildren(\DOMNode $node, $name)   X-Ref
Get child elements by name.

param: mixed $name
return: \DOMElement[]

validateSchema(\DOMDocument $dom)   X-Ref
Validates a documents XML schema.

return: bool

validateAlias(\DOMElement $alias, $file)   X-Ref
Validates an alias.

param: string $file

validateExtensions(\DOMDocument $dom, $file)   X-Ref
Validates an extension.

param: string $file

loadFromExtensions(\DOMDocument $xml)   X-Ref
Loads from an extension.

convertDomElementToArray(\DOMElement $element)   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
return: mixed

Generated: Wed Dec 7 15:09:22 2022 Cross-referenced by PHPXref 0.7.1