PHP Class Prado\Web\UI\WebControls\TEmailAddressValidator

TEmailAddressValidator validates whether the value of an associated input component is a valid email address. If {@link getCheckMXRecord CheckMXRecord} is true, it will check MX record for the email adress, provided checkdnsrr() is available in the installed PHP.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends TRegularExpressionValidator
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
evaluateIsValid ( ) : array Returns an array of javascript validator options.
getCheckMXRecord ( ) : boolean
getRegularExpression ( ) : string
setCheckMXRecord ( $value )

Méthodes protégées

Méthode Description
getClientClassName ( ) : string Gets the name of the javascript class responsible for performing validation for this control.

Method Details

evaluateIsValid() public méthode

Returns an array of javascript validator options.
public evaluateIsValid ( ) : array
Résultat array javascript validator options.

getCheckMXRecord() public méthode

public getCheckMXRecord ( ) : boolean
Résultat boolean whether to check MX record for the email address being validated. Defaults to true.

getClientClassName() protected méthode

This method overrides the parent implementation.
protected getClientClassName ( ) : string
Résultat string the javascript class name

getRegularExpression() public méthode

public getRegularExpression ( ) : string
Résultat string the regular expression that determines the pattern used to validate a field.

setCheckMXRecord() public méthode

public setCheckMXRecord ( $value )