TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractValidatorClass Class Reference
Inheritance diagram for AbstractValidatorClass:
AbstractValidator ValidatorInterface

Protected Member Functions

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

Protected Attributes

 $supportedOptions
 
- Protected Attributes inherited from AbstractValidator
 $acceptsEmptyValues = true
 
 $supportedOptions = []
 
 $options = []
 
 $result
 

Additional Inherited Members

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

Detailed Description

Testcase for the abstract base-class of vvalidators

http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later

Definition at line 29 of file AbstractValidatorClass.php.

Member Function Documentation

isValid (   $value)
protected

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 46 of file AbstractValidatorClass.php.

Member Data Documentation

$supportedOptions
protected
Initial value:
= [
'requiredOption' => [0, 'Some value', 'integer', true]

Definition at line 34 of file AbstractValidatorClass.php.