TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Form\Domain\Validator\FileAllowedTypesValidator Class Reference
Inheritance diagram for TYPO3\CMS\Form\Domain\Validator\FileAllowedTypesValidator:
TYPO3\CMS\Form\Domain\Validator\AbstractValidator TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface

Public Member Functions

 isValid ($value)
 
 substituteMarkers ($message)
 
- Public Member Functions inherited from TYPO3\CMS\Form\Domain\Validator\AbstractValidator
 setRawArgument ($rawArgument)
 
 setFormUtility (FormUtility $formUtility)
 
 substituteMarkers ($message)
 
 getLocalLanguageLabel ($type='')
 
 renderMessage ($message=null, $type=null, $messageType='message')
 
- Public Member Functions inherited from TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
 __construct (array $options=[])
 
 validate ($value)
 
 getOptions ()
 

Public Attributes

 true
 
const LOCALISATION_OBJECT_NAME = 'tx_form_system_validate_fileallowedtypes'
 
- Public Attributes inherited from TYPO3\CMS\Form\Domain\Validator\AbstractValidator
const LOCALISATION_OBJECT_NAME = 'tx_form_system_validate'
 
 true
 

Protected Attributes

 $supportedOptions
 
- Protected Attributes inherited from TYPO3\CMS\Form\Domain\Validator\AbstractValidator
 $formUtility
 
 $rawArgument
 
 $supportedOptions
 
 $acceptsEmptyValues = false
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator
 $acceptsEmptyValues = true
 
 $supportedOptions = []
 
 $options = []
 
 $result
 

Additional Inherited Members

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

Detailed Description

Definition at line 19 of file FileAllowedTypesValidator.php.

Member Function Documentation

◆ isValid()

TYPO3\CMS\Form\Domain\Validator\FileAllowedTypesValidator::isValid (   $value)

Check if the file mime type is allowed.

The mime type is set in the propertymapper

See also
TYPO3::convertFrom
Parameters
array$value
Returns
void

Definition at line 47 of file FileAllowedTypesValidator.php.

References TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator\addError(), TYPO3\CMS\Form\Domain\Validator\AbstractValidator\renderMessage(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ substituteMarkers()

TYPO3\CMS\Form\Domain\Validator\FileAllowedTypesValidator::substituteMarkers (   $message)

Substitute makers in the message text Overrides the abstract

Parameters
string$messageMessage text with markers
Returns
string Message text with substituted markers

Definition at line 72 of file FileAllowedTypesValidator.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Member Data Documentation

◆ $supportedOptions

TYPO3\CMS\Form\Domain\Validator\FileAllowedTypesValidator::$supportedOptions
protected
Initial value:
= [
'element' => ['', 'The name of the element', 'string', true]

Definition at line 24 of file FileAllowedTypesValidator.php.

◆ LOCALISATION_OBJECT_NAME

const TYPO3\CMS\Form\Domain\Validator\FileAllowedTypesValidator::LOCALISATION_OBJECT_NAME = 'tx_form_system_validate_fileallowedtypes'

Definition at line 35 of file FileAllowedTypesValidator.php.

◆ true

TYPO3\CMS\Form\Domain\Validator\FileAllowedTypesValidator::true

Definition at line 26 of file FileAllowedTypesValidator.php.