Esempio n. 1
0
 static function email($value, $checkDomain = false)
 {
     static $qfRule = null;
     if (!isset($qfRule)) {
         $qfRule = new HTML_QuickForm_Rule_Email();
     }
     return $qfRule->validate($value, $checkDomain);
 }
 /**
  * Returns true if email address is valid else false
  *
  * @param string $email
  * @return boolean
  */
 function isValidEmail($email)
 {
     $rule = new HTML_QuickForm_Rule_Email();
     return $rule->validate($email);
 }