PHP Класс Symfony\Component\Validator\Mapping\Loader\XmlFileLoader

Наследование: extends Symfony\Component\Validator\Mapping\Loader\FileLoader
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$classes SimpleXMLElement[] | null The XML nodes of the mapping file.

Открытые методы

Метод Описание
getMappedClasses ( ) : string[] Return the names of the classes mapped in this file.
loadClassMetadata ( Symfony\Component\Validator\Mapping\ClassMetadata $metadata )

Защищенные методы

Метод Описание
parseConstraints ( SimpleXMLElement $nodes ) : array Parses a collection of "constraint" XML nodes.
parseFile ( string $path ) : SimpleXMLElement Loads the XML class descriptions from the given file.
parseOptions ( SimpleXMLElement $nodes ) : array Parses a collection of "option" XML nodes.
parseValues ( SimpleXMLElement $nodes ) : array Parses a collection of "value" XML nodes.

Приватные методы

Метод Описание
loadClassMetadataFromXml ( Symfony\Component\Validator\Mapping\ClassMetadata $metadata, SimpleXMLElement $classDescription )
loadClassesFromXml ( )

Описание методов

getMappedClasses() публичный Метод

Return the names of the classes mapped in this file.
public getMappedClasses ( ) : string[]
Результат string[] The classes names

loadClassMetadata() публичный Метод

public loadClassMetadata ( Symfony\Component\Validator\Mapping\ClassMetadata $metadata )
$metadata Symfony\Component\Validator\Mapping\ClassMetadata

parseConstraints() защищенный Метод

Parses a collection of "constraint" XML nodes.
protected parseConstraints ( SimpleXMLElement $nodes ) : array
$nodes SimpleXMLElement The XML nodes
Результат array The Constraint instances

parseFile() защищенный Метод

Loads the XML class descriptions from the given file.
protected parseFile ( string $path ) : SimpleXMLElement
$path string The path of the XML file
Результат SimpleXMLElement The class descriptions

parseOptions() защищенный Метод

Parses a collection of "option" XML nodes.
protected parseOptions ( SimpleXMLElement $nodes ) : array
$nodes SimpleXMLElement The XML nodes
Результат array The options

parseValues() защищенный Метод

Parses a collection of "value" XML nodes.
protected parseValues ( SimpleXMLElement $nodes ) : array
$nodes SimpleXMLElement The XML nodes
Результат array The values

Описание свойств

$classes защищенное свойство

The XML nodes of the mapping file.
protected SimpleXMLElement[]|null $classes
Результат SimpleXMLElement[] | null