Свойство | Тип | Описание | |
---|---|---|---|
$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 |