PHP 클래스 Symfony\Component\Routing\Loader\XmlFileLoader

저자: Fabien Potencier ([email protected])
상속: extends Symfony\Component\Config\Loader\FileLoader
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

공개 메소드들

메소드 설명
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