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

Public Member Functions

 isValid (mixed $resource)
- ‪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 countable types

Scope: frontend

Definition at line 33 of file FileSizeValidator.php.

Member Function Documentation

◆ isValid()

TYPO3\CMS\Form\Mvc\Validation\FileSizeValidator::isValid ( mixed  $resource)

◆ validateOptions()

TYPO3\CMS\Form\Mvc\Validation\FileSizeValidator::validateOptions ( )

Checks if this validator is correctly configured

InvalidValidationOptionsException‪if the configured validation options are incorrect

Definition at line 100 of file FileSizeValidator.php.

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

Member Data Documentation

◆ $supportedOptions

array TYPO3\CMS\Form\Mvc\Validation\FileSizeValidator::$supportedOptions
Initial value:
= array(
'minimum' => ['0B', 'The minimum file size to accept', 'string'],
'maximum' => [PHP_INT_MAX . 'B', 'The maximum file size to accept', 'string'],

Definition at line 37 of file FileSizeValidator.php.