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

상속: extends GenericObjectValidator
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$supportedOptions array
$validatorResolver Neos\Flow\Validation\ValidatorResolver

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
isValid ( mixed $value ) : void Checks for a collection and if needed validates the items in the collection.

메소드 상세

isValid() 보호된 메소드

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
리턴 void

validate() 공개 메소드

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

프로퍼티 상세

$supportedOptions 보호되어 있는 프로퍼티

protected array $supportedOptions
리턴 array

$validatorResolver 보호되어 있는 프로퍼티

protected ValidatorResolver,Neos\Flow\Validation $validatorResolver
리턴 Neos\Flow\Validation\ValidatorResolver