[ Index ]

PHP Cross Reference of phpBB-3.3.3-deutsch

title

Body

[close]

/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):
  load()
  supports()
  parseParameters()
  parseImports()
  parseDefinitions()
  getServiceDefaults()
  parseDefinition()
  parseFileToDOM()
  processAnonymousServices()
  getArgumentsAsPhp()
  getChildren()
  validateSchema()
  validateAlias()
  validateExtensions()
  loadFromExtensions()
  convertDomElementToArray()


Class: XmlFileLoader  - X-Ref

XmlFileLoader loads XML files service definitions.

load($resource, $type = null)   X-Ref
{@inheritdoc}


supports($resource, $type = null)   X-Ref
{@inheritdoc}


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.

return: Definition|null
param: string $file

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

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

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.

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

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

return: \DOMElement[]
param: mixed $name

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

return: mixed
param: \DOMElement $element A \DOMElement instance



Generated: Sun Feb 14 20:08:31 2021 Cross-referenced by PHPXref 0.7.1