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

Public Member Functions

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

Protected Member Functions

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

Additional Inherited Members

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

Detailed Description

Validator for email addresses

Definition at line 22 of file EmailAddressValidator.php.

Member Function Documentation

isValid (   $value)

Checks if the given value is a valid email address.

Parameters
mixed$valueThe value that should be validated
Returns
void

Definition at line 31 of file EmailAddressValidator.php.

References AbstractValidator\addError(), AbstractValidator\translateErrorMessage(), and EmailAddressValidator\validEmail().

validEmail (   $emailAddress)
protected

Checking syntax of input email address

Parameters
string$emailAddressInput string to evaluate
Returns
bool Returns TRUE if the $email address (input string) is valid

Definition at line 48 of file EmailAddressValidator.php.

Referenced by EmailAddressValidator\isValid().