PHP Class Neos\Flow\Validation\Validator\CollectionValidator

Inheritance: extends GenericObjectValidator
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$supportedOptions array
$validatorResolver Neos\Flow\Validation\ValidatorResolver

Public Methods

Method 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.

Protected Methods

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

Method Details

isValid() protected method

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
return void

validate() public method

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
return Neos\Error\Messages\Result

Property Details

$supportedOptions protected property

protected array $supportedOptions
return array

$validatorResolver protected property

protected ValidatorResolver,Neos\Flow\Validation $validatorResolver
return Neos\Flow\Validation\ValidatorResolver