PHP 클래스 Neos\Flow\Validation\Validator\AbstractCompositeValidator

상속: implements Neos\Flow\Validation\Validator\ObjectValidatorInterface, implements Countable
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$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