Guides

XmlFileLoader extends FileLoader
in package

FinalYes

Table of Contents

Methods

load()  : array<string|int, array<string|int, mixed>>
supports()  : bool
firstChildElement()  : DOMElement|null
Returns the first DIRECT child of the given name. A subtree search would also find a <project> nested in an <extension>, which the schema allows, and take it for the project configuration.

Methods

load()

public load(mixed $resource[, string|null $type = null ]) : array<string|int, array<string|int, mixed>>
Parameters
$resource : mixed
$type : string|null = null
Return values
array<string|int, array<string|int, mixed>>

supports()

public supports(mixed $resource[, string|null $type = null ]) : bool
Parameters
$resource : mixed
$type : string|null = null
Return values
bool

firstChildElement()

Returns the first DIRECT child of the given name. A subtree search would also find a <project> nested in an <extension>, which the schema allows, and take it for the project configuration.

private firstChildElement(DOMElement $element, string $name) : DOMElement|null
Parameters
$element : DOMElement
$name : string
Return values
DOMElement|null
On this page

Search results