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

Public Member Functions

 isValid ($value)
 
- 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_regexp'
 
- 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 17 of file RegExpValidator.php.

Member Function Documentation

◆ isValid()

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

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

Parameters
mixed$value
Returns
void

Definition at line 42 of file RegExpValidator.php.

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

Member Data Documentation

◆ $supportedOptions

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

Definition at line 22 of file RegExpValidator.php.

◆ LOCALISATION_OBJECT_NAME

const TYPO3\CMS\Form\Domain\Validator\RegExpValidator::LOCALISATION_OBJECT_NAME = 'tx_form_system_validate_regexp'

Definition at line 33 of file RegExpValidator.php.

◆ true

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

Definition at line 24 of file RegExpValidator.php.