TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
NumberRangeValidator Class Reference
Inheritance diagram for NumberRangeValidator:
AbstractValidator ValidatorInterface

Public Member Functions

 isValid ($value)
 
- Public Member Functions inherited from AbstractValidator
 __construct (array $options=[])
 
 validate ($value)
 
 getOptions ()
 

Protected Attributes

 $supportedOptions
 
- Protected Attributes inherited from AbstractValidator
 $acceptsEmptyValues = true
 
 $supportedOptions = []
 
 $options = []
 
 $result
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractValidator
 isValid ($value)
 
 addError ($message, $code, array $arguments=[], $title= '')
 
 isEmpty ($value)
 
 translateErrorMessage ($translateKey, $extensionName, $arguments=[])
 

Detailed Description

Validator for general numbers

Definition at line 22 of file NumberRangeValidator.php.

Member Function Documentation

isValid (   $value)

The given value is valid if it is a number in the specified range.

Parameters
mixed$valueThe value that should be validated
Returns
void

Definition at line 39 of file NumberRangeValidator.php.

References AbstractValidator\addError(), and AbstractValidator\translateErrorMessage().

Member Data Documentation

$supportedOptions
protected
Initial value:
= [
'minimum' => [0, 'The minimum value to accept', 'integer']

Definition at line 27 of file NumberRangeValidator.php.