Property | Type | Description | |
---|---|---|---|
$classes | SimpleXMLElement[] | null | The XML nodes of the mapping file. |
Method | Description | |
---|---|---|
getMappedClasses ( ) : string[] | Return the names of the classes mapped in this file. | |
loadClassMetadata ( Symfony\Component\Validator\Mapping\ClassMetadata $metadata ) |
Method | 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. |
Method | Description | |
---|---|---|
loadClassMetadataFromXml ( Symfony\Component\Validator\Mapping\ClassMetadata $metadata, SimpleXMLElement $classDescription ) | ||
loadClassesFromXml ( ) |
public getMappedClasses ( ) : string[] | ||
return | string[] | The classes names |
public loadClassMetadata ( Symfony\Component\Validator\Mapping\ClassMetadata $metadata ) | ||
$metadata | Symfony\Component\Validator\Mapping\ClassMetadata |
protected parseConstraints ( SimpleXMLElement $nodes ) : array | ||
$nodes | SimpleXMLElement | The XML nodes |
return | array | The Constraint instances |
protected parseOptions ( SimpleXMLElement $nodes ) : array | ||
$nodes | SimpleXMLElement | The XML nodes |
return | array | The options |
protected parseValues ( SimpleXMLElement $nodes ) : array | ||
$nodes | SimpleXMLElement | The XML nodes |
return | array | The values |
protected SimpleXMLElement[]|null $classes | ||
return | SimpleXMLElement[] | null |