Property | Type | Description | |
---|---|---|---|
$acceptsEmptyValues | boolean | If this is TRUE, the validators isValid() method is not called in case of an empty value Note: A value is considered empty if it is NULL or an empty string! By default all validators except for NotEmpty and the Composite Validators accept empty values | |
$options | array | ||
$result | Neos\Error\Messages\Result | ||
$supportedOptions | array | 0 => default value 1 => description 2 => type 3 => required (boolean, optional) |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) | Constructs the validator and sets validation options | |
getOptions ( ) : array | Returns the options of this validator | |
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. |
Method | Description | |
---|---|---|
addError ( string $message, integer $code, array $arguments = [] ) : void | Creates a new validation error object and adds it to $this->errors | |
isEmpty ( mixed $value ) : boolean | ||
isValid ( mixed $value ) : void | Check if $value is valid. If it is not valid, needs to add an error to Result. |
public __construct ( array $options = [] ) | ||
$options | array | Options for the validator |
public getOptions ( ) : array | ||
return | array |
protected bool $acceptsEmptyValues | ||
return | boolean |
protected Result,Neos\Error\Messages $result | ||
return | Neos\Error\Messages\Result |
protected array $supportedOptions | ||
return | array |