[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include( PLOG_CLASS_PATH."class/data/validator/validator.class.php" ); 4 lt_include( PLOG_CLASS_PATH."class/config/config.class.php" ); 5 lt_include( PLOG_CLASS_PATH."class/data/validator/rules/emailformatrule.class.php" ); 6 lt_include( PLOG_CLASS_PATH."class/data/validator/rules/emaildnsrule.class.php" ); 7 8 /** 9 * \ingroup Validator 10 * 11 * Implements validation of email addresses. If check_email_address_validity is set to 12 * enabled, it will also check whether the email address is valid in the given email server 13 * by adding an EmailDnsRule to the list of rules to validate. 14 * 15 * @see EmailFormatRule 16 * @see EmailDnsRule 17 */ 18 class EmailValidator extends Validator 19 { 20 /** 21 * The constructor only initializes the validator and depending on the 22 * value of check_email_address_validity, it will also add a EmailDnsRule 23 * rule to check for the validity of the mailbox in the given email server 24 */ 25 function EmailValidator() 26 { 27 $this->Validator(); 28 29 $this->addRule(new EmailFormatRule()); 30 31 $config =& Config::getConfig(); 32 33 if ( $config->getValue( "check_email_address_validity" )) { 34 $this->addRule(new EmailDnsRule()); 35 } 36 } 37 } 38 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |