‪TYPO3CMS  ‪main
TYPO3Tests\BlogExample\Domain\Validator\PostValidator Class Reference
Inheritance diagram for TYPO3Tests\BlogExample\Domain\Validator\PostValidator:
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)

Additional Inherited Members

- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
 setOptions (array $options)
 validate (mixed $value)
 getOptions ()
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
bool $acceptsEmptyValues = true
array $supportedOptions = array( )
array $options = []
Result $result

Detailed Description

A custom validator for blog posts.

Definition at line 27 of file PostValidator.php.

Member Function Documentation

◆ isValid()

TYPO3Tests\BlogExample\Domain\Validator\PostValidator::isValid ( mixed  $value)

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 35 of file PostValidator.php.