PHP Class Neos\Flow\Validation\Validator\CollectionValidator

Inheritance: extends GenericObjectValidator
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$supportedOptions array
$validatorResolver Neos\Flow\Validation\ValidatorResolver

Méthodes publiques

Méthode Description
validate ( mixed $value ) : Neos\Error\Messages\Result Checks if the given value is valid according to the validator, and returns the Error Messages object which occurred.

Méthodes protégées

Méthode Description
isValid ( mixed $value ) : void Checks for a collection and if needed validates the items in the collection.

Method Details

isValid() protected méthode

This is done with the specified element validator or a validator based on the given element type and validation group. Either elementValidator or elementType must be given, otherwise validation will be skipped.
protected isValid ( mixed $value ) : void
$value mixed A collection to be validated
Résultat void

validate() public méthode

Checks if the given value is valid according to the validator, and returns the Error Messages object which occurred.
public validate ( mixed $value ) : Neos\Error\Messages\Result
$value mixed The value that should be validated
Résultat Neos\Error\Messages\Result

Property Details

$supportedOptions protected_oe property

protected array $supportedOptions
Résultat array

$validatorResolver protected_oe property

protected ValidatorResolver,Neos\Flow\Validation $validatorResolver
Résultat Neos\Flow\Validation\ValidatorResolver