PHP Class Symfony\Component\Validator\Mapping\Loader\XmlFileLoader

Inheritance: extends Symfony\Component\Validator\Mapping\Loader\FileLoader
Afficher le fichier Open project: symfony/symfony Class Usage Examples

Protected Properties

Свойство Type Description
$classes SimpleXMLElement[] | null The XML nodes of the mapping file.

Méthodes publiques

Méthode Description
getMappedClasses ( ) : string[] Return the names of the classes mapped in this file.
loadClassMetadata ( Symfony\Component\Validator\Mapping\ClassMetadata $metadata )

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
loadClassMetadataFromXml ( Symfony\Component\Validator\Mapping\ClassMetadata $metadata, SimpleXMLElement $classDescription )
loadClassesFromXml ( )

Method Details

getMappedClasses() public méthode

Return the names of the classes mapped in this file.
public getMappedClasses ( ) : string[]
Résultat string[] The classes names

loadClassMetadata() public méthode

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

parseConstraints() protected méthode

Parses a collection of "constraint" XML nodes.
protected parseConstraints ( SimpleXMLElement $nodes ) : array
$nodes SimpleXMLElement The XML nodes
Résultat array The Constraint instances

parseFile() protected méthode

Loads the XML class descriptions from the given file.
protected parseFile ( string $path ) : SimpleXMLElement
$path string The path of the XML file
Résultat SimpleXMLElement The class descriptions

parseOptions() protected méthode

Parses a collection of "option" XML nodes.
protected parseOptions ( SimpleXMLElement $nodes ) : array
$nodes SimpleXMLElement The XML nodes
Résultat array The options

parseValues() protected méthode

Parses a collection of "value" XML nodes.
protected parseValues ( SimpleXMLElement $nodes ) : array
$nodes SimpleXMLElement The XML nodes
Résultat array The values

Property Details

$classes protected_oe property

The XML nodes of the mapping file.
protected SimpleXMLElement[]|null $classes
Résultat SimpleXMLElement[] | null