[ Index ]

PHP Cross Reference of phpBB-3.3.12-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.

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

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.

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

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

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

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

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

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

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

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



Generated: Sun Jun 23 12:25:44 2024 Cross-referenced by PHPXref 0.7.1