本文整理匯總了PHP中Zend_Validate_EmailAddress::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Validate_EmailAddress::__construct方法的具體用法?PHP Zend_Validate_EmailAddress::__construct怎麽用?PHP Zend_Validate_EmailAddress::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zend_Validate_EmailAddress
的用法示例。
在下文中一共展示了Zend_Validate_EmailAddress::__construct方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
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%'");
}
示例2: __construct
public function __construct($options = array())
{
parent::__construct($options);
$this->_messageTemplates[self::NON_WHITELISTED_DOMAIN] = "Domain '%value%' is not whitelisted.";
}
示例3: __construct
/**
* 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);
}
示例4: __construct
public function __construct($options = array())
{
parent::__construct($options);
$this->setMailValidatorMessage();
}