프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$propertyValidators | array | ||
$validatedInstancesContainer | SplObjectStorage |
메소드 | 설명 | |
---|---|---|
addPropertyValidator ( string $propertyName, Neos\Flow\Validation\Validator\ValidatorInterface $validator ) : void | Adds the given validator for validation of the specified property. | |
getPropertyValidators ( string $propertyName = null ) : array | Returns all property validators - or only validators of the specified property | |
setValidatedInstancesContainer ( SplObjectStorage $validatedInstancesContainer ) : void | Allows to set a container to keep track of validated instances. | |
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. |
메소드 | 설명 | |
---|---|---|
checkProperty ( mixed $value, array $validators ) : null | Neos\Error\Messages\Result | Checks if the specified property of the given object is valid, and adds found errors to the $messages object. | |
getPropertyValue ( object $object, string $propertyName ) : mixed | Load the property value to be used for validation. | |
isValid ( mixed $object ) : void | Checks if the given value is valid according to the property validators. | |
isValidatedAlready ( object $object ) : boolean |
public addPropertyValidator ( string $propertyName, Neos\Flow\Validation\Validator\ValidatorInterface $validator ) : void | ||
$propertyName | string | Name of the property to validate |
$validator | Neos\Flow\Validation\Validator\ValidatorInterface | The property validator |
리턴 | void |
public getPropertyValidators ( string $propertyName = null ) : array | ||
$propertyName | string | Name of the property to return validators for |
리턴 | array | An array of validators |
protected isValidatedAlready ( object $object ) : boolean | ||
$object | object | |
리턴 | boolean |
public setValidatedInstancesContainer ( SplObjectStorage $validatedInstancesContainer ) : void | ||
$validatedInstancesContainer | SplObjectStorage | A container to keep track of validated instances |
리턴 | void |