TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractCompositeValidatorClass Class Reference
Inheritance diagram for AbstractCompositeValidatorClass:
AbstractCompositeValidator ObjectValidatorInterface ValidatorInterface

Public Member Functions

 validate ($value)
 
- Public Member Functions inherited from AbstractCompositeValidator
 __construct (array $options=[])
 
 addValidator (\TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface $validator)
 
 removeValidator (\TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface $validator)
 
 count ()
 
 getValidators ()
 
 getOptions ()
 
 setValidatedInstancesContainer (\SplObjectStorage $validatedInstancesContainer)
 

Protected Member Functions

 isValid ($value)
 

Protected Attributes

 $supportedOptions
 
- Protected Attributes inherited from AbstractCompositeValidator
 $supportedOptions = []
 
 $options = []
 
 $validators
 
 $validatedInstancesContainer
 

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 AbstractCompositeValidatorClass.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 AbstractCompositeValidatorClass.php.

validate (   $value)

Checks if the given value is valid according to the validator, and returns the Error Messages object which occurred.

Parameters
mixed$valueThe value that should be validated
Returns

Implements ValidatorInterface.

Definition at line 59 of file AbstractCompositeValidatorClass.php.

Member Data Documentation

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

Definition at line 34 of file AbstractCompositeValidatorClass.php.