PHP Класс Neos\Flow\Validation\Validator\AbstractCompositeValidator

Наследование: implements Neos\Flow\Validation\Validator\ObjectValidatorInterface, implements Countable
Показать файл Открыть проект

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

Свойство Тип Описание
$options array
$supportedOptions array This contains the supported options, their default values and descriptions.
$validatedInstancesContainer SplObjectStorage
$validators SplObjectStorage

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

Метод Описание
__construct ( array $options = [] ) Constructs the composite validator and sets validation options
addValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator ) : void Adds a new validator to the conjunction.
count ( ) : integer Returns the number of validators contained in this conjunction.
getOptions ( ) : array Returns the options for this validator
getValidators ( ) : SplObjectStorage Returns the child validators of this Composite Validator
removeValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator ) Removes the specified validator.
setValidatedInstancesContainer ( SplObjectStorage $validatedInstancesContainer ) : void Allows to set a container to keep track of validated instances.

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

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

Constructs the composite validator and sets validation options
public __construct ( array $options = [] )
$options array Options for the validator

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

Adds a new validator to the conjunction.
public addValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator ) : void
$validator Neos\Flow\Validation\Validator\ValidatorInterface The validator that should be added
Результат void

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

Returns the number of validators contained in this conjunction.
public count ( ) : integer
Результат integer The number of validators

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

Returns the options for this validator
public getOptions ( ) : array
Результат array

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

Returns the child validators of this Composite Validator
public getValidators ( ) : SplObjectStorage
Результат SplObjectStorage

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

Removes the specified validator.
public removeValidator ( Neos\Flow\Validation\Validator\ValidatorInterface $validator )
$validator Neos\Flow\Validation\Validator\ValidatorInterface The validator to remove

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

Allows to set a container to keep track of validated instances.
public setValidatedInstancesContainer ( SplObjectStorage $validatedInstancesContainer ) : void
$validatedInstancesContainer SplObjectStorage A container to keep track of validated instances
Результат void

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

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

protected array $options
Результат array

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

This contains the supported options, their default values and descriptions.
protected array $supportedOptions
Результат array

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

protected SplObjectStorage $validatedInstancesContainer
Результат SplObjectStorage

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

protected SplObjectStorage $validators
Результат SplObjectStorage