‪TYPO3CMS  11.5
TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\Fixture\AbstractValidatorClass Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\Fixture\AbstractValidatorClass:
TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface

Protected Member Functions

 isValid ($value)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
 addError ($message, $code, array $arguments=[], $title='')
 
 addErrorForProperty ($propertyPath, $message, $code, array $arguments=[], $title='')
 
bool isEmpty ($value)
 
string translateErrorMessage ($translateKey, $extensionName, $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 = array( )
 
TYPO3 CMS Extbase Error Result $result
 

Additional Inherited Members

- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
 __construct (array $options=[])
 
TYPO3 CMS Extbase Error Result validate ($value)
 
array getOptions ()
 

Detailed Description

Testcase for the abstract base-class of validators

Definition at line 25 of file AbstractValidatorClass.php.

Member Function Documentation

◆ isValid()

TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\Fixture\AbstractValidatorClass::isValid (   $value)
protected

Check if $value is valid. If it is not valid, needs to add an error to Result.

Parameters
mixed$value

Reimplemented from TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator.

Definition at line 41 of file AbstractValidatorClass.php.

Member Data Documentation

◆ $supportedOptions

array TYPO3\CMS\Extbase\Tests\Unit\Validation\Validator\Fixture\AbstractValidatorClass::$supportedOptions
protected
Initial value:
= array(
'requiredOption' => [0, 'Some value', 'integer', true],
'demoOption' => [PHP_INT_MAX, 'Some value', 'integer'],
)
Todo:
‪Declare the property type in the parent class

Definition at line 30 of file AbstractValidatorClass.php.