Class \Prado\Web\UI\WebControls\TEmailAddressValidator
TEmailAddressValidator class
TEmailAddressValidator validates whether the value of an associated input component is a valid email address. If \Prado\Web\UI\WebControls\getCheckMXRecord is true, it will check MX record for the email adress, provided checkdnsrr() is available in the installed PHP.
Class hierarchy
- \Prado\Web\UI\WebControls\TEmailAddressValidator
- \Prado\Web\UI\WebControls\TRegularExpressionValidator
- \Prado\Web\UI\WebControls\TBaseValidator implements IValidator
- \Prado\Web\UI\WebControls\TLabel implements IDataRenderer
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.0
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
getClientClassName() : string
Gets the name of the javascript class responsible for performing validation for this control.
This method overrides the parent implementation. |
public
mixed
|
EMAIL_REGEXP
Regular expression used to validate the email address
|
'[a-zA-Z0-9!#$%&\'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&\'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?'
|