本文整理汇总了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();
}