Documentation

XmlFileLoader extends FileLoader
in package

Loads XML mapping files.

Tags
author

Kévin Dunglas dunglas@gmail.com

Table of Contents

Properties

$file  : mixed
$classes  : array<string|int, SimpleXMLElement>|null
An array of {@class \SimpleXMLElement} instances.

Methods

__construct()  : mixed
getMappedClasses()  : array<string|int, string>
Return the names of the classes mapped in this file.
loadClassMetadata()  : bool
{@inheritdoc}
getClassesFromXml()  : array<string|int, mixed>
parseContext()  : array<string|int, mixed>
parseFile()  : SimpleXMLElement
Parses an XML File.

Properties

$classes

An array of {@class \SimpleXMLElement} instances.

private array<string|int, SimpleXMLElement>|null $classes

Methods

__construct()

public __construct(string $file) : mixed
Parameters
$file : string

The mapping file to load

Tags
throws
MappingException

if the mapping file does not exist or is not readable

getMappedClasses()

Return the names of the classes mapped in this file.

public getMappedClasses() : array<string|int, string>
Return values
array<string|int, string>

loadClassMetadata()

{@inheritdoc}

public loadClassMetadata(ClassMetadataInterface $classMetadata) : bool
Parameters
$classMetadata : ClassMetadataInterface
Return values
bool

getClassesFromXml()

private getClassesFromXml() : array<string|int, mixed>
Return values
array<string|int, mixed>

parseContext()

private parseContext(SimpleXMLElement $nodes) : array<string|int, mixed>
Parameters
$nodes : SimpleXMLElement
Return values
array<string|int, mixed>

parseFile()

Parses an XML File.

private parseFile(string $file) : SimpleXMLElement
Parameters
$file : string
Tags
throws
MappingException
Return values
SimpleXMLElement

        
On this page

Search results