當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Validate_EmailAddress::__construct方法代碼示例

本文整理匯總了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%'");
 }
開發者ID:xiaoguizhidao,項目名稱:koala-framework,代碼行數:10,代碼來源:EmailAddress.php

示例2: __construct

 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->_messageTemplates[self::NON_WHITELISTED_DOMAIN] = "Domain '%value%' is not whitelisted.";
 }
開發者ID:knatorski,項目名稱:SMS,代碼行數:5,代碼來源:EmailAddressInDomain.php

示例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);
 }
開發者ID:bokultis,項目名稱:kardiomedika,代碼行數:16,代碼來源:EmailAddress.php

示例4: __construct

 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->setMailValidatorMessage();
 }
開發者ID:niavok,項目名稱:syj,代碼行數:5,代碼來源:EmailAddress.php


注:本文中的Zend_Validate_EmailAddress::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。