‪TYPO3CMS  10.4
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 ($value)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
 __construct (array $options=[])
 
TYPO3 CMS Extbase Error Result validate ($value)
 
array getOptions ()
 

Protected Member Functions

 validateOptions ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
 addError ($message, $code, array $arguments=[], $title='')
 
bool isEmpty ($value)
 
string null translateErrorMessage ($translateKey, $extensionName, $arguments=[])
 

Protected Attributes

array $supportedOptions
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
bool $acceptsEmptyValues = true
 
array $supportedOptions = array( )
 
array $options = array( )
 
TYPO3 CMS Extbase Error 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 (   $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 99 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.