Class cValidatorEmail
E-Mail validation.
Supports following options:
- disallow_tld (array) Optional, list of top level domains to disallow - disallow_host (array) Optional, list of hosts to disallow - mx_check (bool) Optional, flag to check DNS records for MX type
Usage:
$validator = cValidatorFactory::getInstance('email');
if ($validator->isValid('user@contenido.org')) {
// email is valid
} else {
$errors = $validator->getErrors();
foreach ($errors as $pos => $errItem) {
echo $errItem->code . ": " . $errItem->message . "\n";
}
}
- cValidatorAbstract
-
cValidatorEmail
Package: Core\Validation
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Murat Purc <murat@purc.de>
Located at classes/validator/class.validator.email.php
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Murat Purc <murat@purc.de>
Located at classes/validator/class.validator.email.php
public
|
|
public static
|
|
public static
|
|
protected
boolean
|
|
private
boolean
|
addError(),
getErrors(),
getOption(),
isValid(),
setOption(),
setOptions()
|
protected static
boolean
|
$_filterVarExists | |
#
Flag about existing flter_var function |
$_errors,
$_options
|