[ Index ]

PHP Cross Reference of phpBB-3.3.2-deutsch

title

Body

[close]

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

(no description)

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

Defines 1 class

XmlFileLoader:: (10 methods):
  load()
  parseNode()
  supports()
  parseRoute()
  parseImport()
  loadFile()
  parseConfigs()
  parseDefaultsConfig()
  parseDefaultNode()
  isElementValueNull()


Class: XmlFileLoader  - X-Ref

XmlFileLoader loads XML routing files.

load($file, $type = null)   X-Ref
Loads an XML file.

param: string      $file An XML file path
param: string|null $type The resource type
return: RouteCollection A RouteCollection instance

parseNode(RouteCollection $collection, \DOMElement $node, $path, $file)   X-Ref
Parses a node from a loaded XML file.

param: RouteCollection $collection Collection to associate with the node
param: \DOMElement     $node       Element to parse
param: string          $path       Full path of the XML file being processed
param: string          $file       Loaded file name

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


parseRoute(RouteCollection $collection, \DOMElement $node, $path)   X-Ref
Parses a route and adds it to the RouteCollection.

param: RouteCollection $collection RouteCollection instance
param: \DOMElement     $node       Element to parse that represents a Route
param: string          $path       Full path of the XML file being processed

parseImport(RouteCollection $collection, \DOMElement $node, $path, $file)   X-Ref
Parses an import and adds the routes in the resource to the RouteCollection.

param: RouteCollection $collection RouteCollection instance
param: \DOMElement     $node       Element to parse that represents a Route
param: string          $path       Full path of the XML file being processed
param: string          $file       Loaded file name

loadFile($file)   X-Ref
Loads an XML file.

param: string $file An XML file path
return: \DOMDocument

parseConfigs(\DOMElement $node, $path)   X-Ref
Parses the config elements (default, requirement, option).

param: \DOMElement $node Element to parse that contains the configs
param: string      $path Full path of the XML file being processed
return: array An array with the defaults as first item, requirements as second and options as third

parseDefaultsConfig(\DOMElement $element, $path)   X-Ref
Parses the "default" elements.

param: \DOMElement $element The "default" element to parse
param: string      $path    Full path of the XML file being processed
return: array|bool|float|int|string|null The parsed value of the "default" element

parseDefaultNode(\DOMElement $node, $path)   X-Ref
Recursively parses the value of a "default" element.

param: \DOMElement $node The node value
param: string      $path Full path of the XML file being processed
return: array|bool|float|int|string The parsed value

isElementValueNull(\DOMElement $element)   X-Ref
No description



Generated: Wed Nov 11 20:28:18 2020 Cross-referenced by PHPXref 0.7.1