PHP Класс Symfony\Component\Routing\Loader\XmlFileLoader

Автор: Fabien Potencier ([email protected])
Наследование: extends Symfony\Component\Config\Loader\FileLoader
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
load ( string $file ) : RouteCollection Loads an XML file.
load ( string $file, string $type = null ) : RouteCollection Loads an XML file.
supports ( mixed $resource ) : boolean Returns true if this class supports the given resource.
supports ( mixed $resource, string $type = null ) : boolean Returns true if this class supports the given resource.

Защищенные методы

Метод Описание
getXmlErrors ( )
loadFile ( $path )
loadFile ( string $file ) : DOMDocument Loads an XML file.
parseNode ( RouteCollection $collection, DOMElement $node, string $path, string $file ) Parses a node from a loaded XML file.
parseRoute ( RouteCollection $collection, $definition, $file )
parseRoute ( RouteCollection $collection, DOMElement $definition, string $file ) Parses a route and adds it to the RouteCollection.
validate ( DOMDocument $dom ) Validates a loaded XML file.
validate ( DOMDocument $dom, $file )

Приватные методы

Метод Описание
getXmlErrors ( ) : array Retrieves libxml errors and clears them.

Описание методов

getXmlErrors() защищенный Метод

protected getXmlErrors ( )

load() публичный Метод

Loads an XML file.
public load ( string $file ) : RouteCollection
$file string A XML file path
Результат Symfony\Component\Routing\RouteCollection A RouteCollection instance

load() публичный Метод

Loads an XML file.
public load ( string $file, string $type = null ) : RouteCollection
$file string An XML file path
$type string The resource type
Результат Symfony\Component\Routing\RouteCollection A RouteCollection instance

loadFile() защищенный Метод

protected loadFile ( $path )

loadFile() защищенный Метод

Loads an XML file.
protected loadFile ( string $file ) : DOMDocument
$file string An XML file path
Результат DOMDocument

parseNode() защищенный Метод

Parses a node from a loaded XML file.
protected parseNode ( RouteCollection $collection, DOMElement $node, string $path, string $file )
$collection Symfony\Component\Routing\RouteCollection the collection to associate with the node
$node DOMElement the node to parse
$path string the path of the XML file being processed
$file string

parseRoute() защищенный Метод

protected parseRoute ( RouteCollection $collection, $definition, $file )
$collection Symfony\Component\Routing\RouteCollection

parseRoute() защищенный Метод

Parses a route and adds it to the RouteCollection.
protected parseRoute ( RouteCollection $collection, DOMElement $definition, string $file )
$collection Symfony\Component\Routing\RouteCollection A RouteCollection instance
$definition DOMElement Route definition
$file string An XML file path

supports() публичный Метод

Returns true if this class supports the given resource.
public supports ( mixed $resource ) : boolean
$resource mixed A resource
Результат boolean true if this class supports the given resource, false otherwise

supports() публичный Метод

Returns true if this class supports the given resource.
public supports ( mixed $resource, string $type = null ) : boolean
$resource mixed A resource
$type string The resource type
Результат boolean True if this class supports the given resource, false otherwise

validate() защищенный Метод

Validates a loaded XML file.
protected validate ( DOMDocument $dom )
$dom DOMDocument A loaded XML file

validate() защищенный Метод

protected validate ( DOMDocument $dom, $file )
$dom DOMDocument