‪TYPO3CMS  ‪main
TYPO3\CMS\Form\Mvc\Validation\DateRangeValidator Class Reference
Inheritance diagram for TYPO3\CMS\Form\Mvc\Validation\DateRangeValidator:
TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface

Public Member Functions

 isValid (mixed $value)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
 setOptions (array $options)
 
 validate (mixed $value)
 
 getOptions ()
 

Protected Member Functions

 validateOptions ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
 addError (string $message, int $code, array $arguments=[], string $title='')
 
 addErrorForProperty (string|array $propertyPath, string $message, int $code, array $arguments=[], string $title='')
 
 isEmpty (mixed $value)
 
 translateErrorMessage (string $translateKey, string $extensionName, array $arguments=[])
 
 initializeDefaultOptions (array $options)
 

Protected Attributes

array $supportedOptions
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
bool $acceptsEmptyValues = true
 
array $supportedOptions = array( )
 
array $options = []
 
Result $result
 

Detailed Description

Validator for date ranges

Scope: frontend

Definition at line 28 of file DateRangeValidator.php.

Member Function Documentation

◆ isValid()

TYPO3\CMS\Form\Mvc\Validation\DateRangeValidator::isValid ( mixed  $value)

◆ validateOptions()

TYPO3\CMS\Form\Mvc\Validation\DateRangeValidator::validateOptions ( )
protected

Checks if this validator is correctly configured

Exceptions
InvalidValidationOptionsException‪if the configured validation options are incorrect

Definition at line 92 of file DateRangeValidator.php.

Referenced by TYPO3\CMS\Form\Mvc\Validation\DateRangeValidator\isValid().

Member Data Documentation

◆ $supportedOptions

array TYPO3\CMS\Form\Mvc\Validation\DateRangeValidator::$supportedOptions
protected
Initial value:
= array(
'minimum' => ['', 'The minimum date formatted as Y-m-d', 'string'],
'maximum' => ['', 'The maximum date formatted as Y-m-d', 'string'],
'format' => ['Y-m-d', 'The format of the minimum and maximum option', 'string'],
)

Definition at line 32 of file DateRangeValidator.php.