TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ValidatorInterface Interface Reference
Inheritance diagram for ValidatorInterface:
AbstractValidator ObjectValidatorInterface AbstractValidatorClass AlphanumericValidator BooleanValidator DateTimeValidator EmailAddressValidator FloatValidator GenericObjectValidator IntegerValidator NotEmptyValidator NumberRangeValidator NumberValidator RawValidator RegularExpressionValidator StringLengthValidator StringValidator TextValidator CountValidator EmptyValidator MimeTypeValidator TestValidator AbstractCompositeValidator GenericObjectValidator

Public Member Functions

 validate ($value)
 
 getOptions ()
 

Detailed Description

Contract for a validator

Definition at line 22 of file ValidatorInterface.php.

Member Function Documentation

getOptions ( )

Returns the options of this validator which can be specified in the constructor

Returns
array

Implemented in AbstractCompositeValidator, and AbstractValidator.

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

Implemented in AbstractValidator, AbstractCompositeValidatorClass, CollectionValidator, GenericObjectValidator, and DisjunctionValidator.