TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
RegularExpressionValidator Class Reference
Inheritance diagram for RegularExpressionValidator:
AbstractValidator ValidatorInterface

Public Member Functions

 isValid ($value)
 
- Public Member Functions inherited from AbstractValidator
 __construct (array $options=array())
 
 validate ($value)
 
 getOptions ()
 

Protected Attributes

 $supportedOptions
 
- Protected Attributes inherited from AbstractValidator
 $acceptsEmptyValues = true
 
 $supportedOptions = array()
 
 $options = array()
 
 $result
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractValidator
 isValid ($value)
 
 addError ($message, $code, array $arguments=array(), $title= '')
 
 isEmpty ($value)
 
 translateErrorMessage ($translateKey, $extensionName, $arguments=array())
 

Detailed Description

Validator based on regular expressions.

Definition at line 22 of file RegularExpressionValidator.php.

Member Function Documentation

isValid (   $value)

Checks if the given value matches the specified regular expression.

Parameters
mixed$valueThe value that should be validated
Returns
void
Exceptions
\TYPO3\CMS\Extbase\Validation\Exception\InvalidValidationOptionsException

Definition at line 39 of file RegularExpressionValidator.php.

References AbstractValidator\$result, AbstractValidator\addError(), and AbstractValidator\translateErrorMessage().

Member Data Documentation

$supportedOptions
protected
Initial value:
= array(
'regularExpression' => array('', 'The regular expression to use for validation, used as given', 'string', true)
)

Definition at line 27 of file RegularExpressionValidator.php.