class XmlFileLoader extends FileLoader

Load, read and validate config xml files

Class XmlFileLoader

Constants

DEFAULT_HOOK_CLASS

Methods

load( mixed $file, string $type = null)

Loads an XML file.

propelOnlyRun( callable $method, $arg)

No description

Boolean
validateSchema( DOMDocument $dom)

Validates a documents XML schema.

Boolean
supports( mixed $resource, string $type = null)

Returns true if this class supports the given resource.

mixed
getAttributeAsPhp( SimpleXMLElement $xml, $name)

Converts an attribute as a PHP type.

Details

at line 62
load( mixed $file, string $type = null)

Loads an XML file.

Parameters

mixed $file The resource
string $type The resource type

at line 110
propelOnlyRun( callable $method, $arg)

Parameters

callable $method
$arg

at line 652
Boolean validateSchema( DOMDocument $dom)

Validates a documents XML schema.

Parameters

DOMDocument $dom

Return Value

Boolean

Exceptions

RuntimeException When extension references a non-existent XSD file

at line 704
Boolean supports( mixed $resource, string $type = null)

Returns true if this class supports the given resource.

Parameters

mixed $resource A resource
string $type The resource type

Return Value

Boolean true if this class supports the given resource, false otherwise

at line 781
mixed getAttributeAsPhp( SimpleXMLElement $xml, $name)

Converts an attribute as a PHP type.

Parameters

SimpleXMLElement $xml
$name

Return Value

mixed