Метод | Описание | |
---|---|---|
load ( string $file ) : |
Loads an XML file. | |
load ( string $file, string $type = null ) : |
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 ( |
Parses a node from a loaded XML file. | |
parseRoute ( |
||
parseRoute ( |
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. |
protected parseRoute ( |
||
$collection |
protected parseRoute ( |
||
$collection | A RouteCollection instance | |
$definition | DOMElement | Route definition |
$file | string | An XML file path |
protected validate ( DOMDocument $dom ) | ||
$dom | DOMDocument | A loaded XML file |