public function __construct($options = array()) { parent::__construct($options); $this->_messageTemplates[self::INVALID] = trlKwfStatic("'%value%' is not a valid email address"); $this->_messageTemplates[self::INVALID_HOSTNAME] = trlKwfStatic("'%hostname%' is not a valid hostname for email address '%value%'"); $this->_messageTemplates[self::INVALID_MX_RECORD] = trlKwfStatic("'%hostname%' does not appear to have a valid MX record for the email address '%value%'"); $this->_messageTemplates[self::DOT_ATOM] = trlKwfStatic("'%localPart%' not matched against dot-atom format"); $this->_messageTemplates[self::QUOTED_STRING] = trlKwfStatic("'%localPart%' not matched against quoted-string format"); $this->_messageTemplates[self::INVALID_LOCAL_PART] = trlKwfStatic("'%localPart%' is not a valid local part for email address '%value%'"); }
public function __construct($options = array()) { parent::__construct($options); $this->_messageTemplates[self::NON_WHITELISTED_DOMAIN] = "Domain '%value%' is not whitelisted."; }
/** * Instantiates hostname validator for local use * * The following option keys are supported: * 'hostname' => A hostname validator, see Zend_Validate_Hostname * 'allow' => Options for the hostname validator, see Zend_Validate_Hostname::ALLOW_* * 'mx' => If MX check should be enabled, boolean * 'deep' => If a deep MX check should be done, boolean * * @param array|Zend_Config $options OPTIONAL * @return void */ public function __construct($options = array()) { parent::__construct($options); }
public function __construct($options = array()) { parent::__construct($options); $this->setMailValidatorMessage(); }