Maslosoft Mangan API
Class EmailValidatorAnnotation
EmailValidator validates that the attribute value is a valid email address.
- Maslosoft\Addendum\Collections\MetaAnnotation
- Maslosoft\Mangan\Meta\ManganAnnotation
- Maslosoft\Mangan\Meta\ManganPropertyAnnotation
- Maslosoft\Mangan\Annotations\Validators\ValidatorAnnotation
- Maslosoft\Mangan\Annotations\Validators\EmailValidatorAnnotation uses Maslosoft\Mangan\Validators\Traits\AllowEmpty
Package: system\validators
Author: Qiang Xue qiang.xue@gmail.com
Version: $Id$
Since: 1.0
Located at Annotations/Validators/EmailValidatorAnnotation.php
Methods inherited from Maslosoft\Mangan\Meta\ManganPropertyAnnotation
Methods inherited from Maslosoft\Mangan\Meta\ManganAnnotation
Constants summary
Constants inherited from Maslosoft\Mangan\Annotations\Validators\ValidatorAnnotation
Properties summary
public
string
|
$pattern
the regular expression used to validate the attribute value. |
#
Maslosoft\Mangan\Annotations\Validators\EmailValidator::EmailPattern
|
public
string
|
$fullPattern
the regular expression used to validate email addresses with the name part.
This property is used only when |
#
Maslosoft\Mangan\Annotations\Validators\EmailValidator::FullEmailPattern
|
public
boolean
|
$allowName
whether to allow name in the email address (e.g. "Qiang Xue qiang.xue@gmail.com"). Defaults to false. |
#
false
|
public
boolean
|
$checkMX
whether to check the MX record for the email address. Defaults to false. To enable it, you need to make sure the PHP function 'checkdnsrr' exists in your PHP installation. |
#
false
|
public
boolean
|
$checkPort
whether to check port 25 for the email address. Defaults to false. To enable it, ensure that the PHP functions 'dns_get_record' and 'fsockopen' are available in your PHP installation. |
#
false
|
Properties inherited from Maslosoft\Mangan\Annotations\Validators\ValidatorAnnotation
$class
,
$except
,
$message
,
$on
,
$proxy
,
$safe
,
$skipOnError
,
$value