‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Validation\Validator\CustomValidator Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Validation\Validator\CustomValidator:
TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface

Protected Member Functions

 isValid (mixed $value)
 
- ‪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)
 
 initializeTranslationOptions (array $options)
 

Additional Inherited Members

- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
 setOptions (array $options)
 
 setRequest (?ServerRequestInterface $request)
 
 validate (mixed $value)
 
 getOptions ()
 
 getRequest ()
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
bool $acceptsEmptyValues = true
 
array $translationOptions = ['message']
 
array $supportedOptions = array( )
 
array $options = []
 
Result $result
 
ServerRequestInterface $request = null
 

Detailed Description

Fixture custom validator

Definition at line 25 of file CustomValidator.php.

Member Function Documentation

◆ isValid()

TYPO3\CMS\Extbase\Tests\Functional\Mvc\Controller\Fixture\Validation\Validator\CustomValidator::isValid ( mixed  $value)
protected

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

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

Definition at line 27 of file CustomValidator.php.