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


PHP Authentication::__construct方法代碼示例

本文整理匯總了PHP中Authentication::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Authentication::__construct方法的具體用法?PHP Authentication::__construct怎麽用?PHP Authentication::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Authentication的用法示例。


在下文中一共展示了Authentication::__construct方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * @param string          $message
  * @param \Exception|null $previous
  */
 public function __construct($message = null, $previous = null)
 {
     if (empty($message)) {
         $message = 'Failed to list user accounts';
     }
     parent::__construct($message, $previous);
 }
開發者ID:activecollab,項目名稱:activecollab-feather-sdk,代碼行數:11,代碼來源:ListAccounts.php

示例2: NewException

 /**
  * Constructor AuthenticationLDAP
  * @param mixed $page_object 
  * @param mixed $connect_method 
  * @param string $ldap_user_domain 
  * @param string $ldap_dn 
  * @param string $ldap_host [default value: localhost]
  * @param double $ldap_port [default value: 389]
  * @param mixed $style [default value: Authentication::STYLE_2_LINES]
  * @param boolean $encrypt [default value: true]
  * @param string $button_class 
  * @param string $table_style 
  */
 function __construct($page_object, $connect_method, $ldap_user_domain = '', $ldap_dn = '', $ldap_host = 'localhost', $ldap_port = 389, $style = Authentication::STYLE_2_LINES, $encrypt = true, $button_class = '', $table_style = '')
 {
     if (!extension_loaded('ldap')) {
         throw new NewException("You need to install PHP lib php-ldap", 0, getDebugBacktrace(1));
     }
     parent::__construct($page_object, $connect_method, $style, $encrypt, $button_class, $table_style);
     $this->ldap_dn = $ldap_dn;
     $this->ldap_user_domain = $ldap_user_domain;
     $this->ldap_host = $ldap_host;
     $this->ldap_port = $ldap_port;
 }
開發者ID:kxopa,項目名稱:WebSite-PHP,代碼行數:24,代碼來源:AuthenticationLDAP.class.php

示例3: __construct

 public function __construct($parameters = NULL, $AuthenticationType = NULL)
 {
     if (get_parent_class('DfpOAuth')) {
         parent::__construct();
     }
     $this->parameters = $parameters;
     $this->AuthenticationType = $AuthenticationType;
 }
開發者ID:josephbergdoll,項目名稱:berrics,代碼行數:8,代碼來源:CustomFieldService.php

示例4: __construct

 public function __construct($parameters = NULL, $AuthenticationType = NULL)
 {
     parent::__construct();
     $this->parameters = $parameters;
     $this->AuthenticationType = $AuthenticationType;
 }
開發者ID:venkyanthony,項目名稱:google-api-dfp-php,代碼行數:6,代碼來源:CreativeWrapperService.php

示例5: __construct

 public function __construct($path, array $roles)
 {
     $newpath = FilterPath::restrictController($path);
     parent::__construct($newpath, $roles);
 }
開發者ID:vyppn,項目名稱:stirlingframe,代碼行數:5,代碼來源:RestrictController.php

示例6: __construct

 public function __construct($env)
 {
     parent::__construct($env);
 }
開發者ID:kumarsivarajan,項目名稱:mollify,代碼行數:4,代碼來源:InstallerAuthentication.class.php

示例7: __construct

 public function __construct()
 {
     $params = array('user' => new FauxObject(), 'session' => new FauxObject(), 'credential' => new FauxObject());
     parent::__construct($params);
 }
開發者ID:gg1977,項目名稱:frontend,代碼行數:5,代碼來源:AuthenticationTest.php

示例8:

	function __construct(){
		parent::__construct();
		$this->contact_id = $_SESSION['contact_id'];
		$this->contact_user_name = $_SESSION['contact_user_name'];
	}
開發者ID:name256,項目名稱:crm42,代碼行數:5,代碼來源:class.EventMgt_Auth.php

示例9: __construct

 public function __construct($path, array $roles)
 {
     $arr = explode('.', $path);
     $newpath = FilterPath::restrictMethod($arr[0], $arr[1]);
     parent::__construct($newpath, $roles);
 }
開發者ID:vyppn,項目名稱:stirlingframe,代碼行數:6,代碼來源:RestrictMethod.php

示例10: __construct

 /**
  * OAuth2Authentication constructor.
  * @param string $name
  */
 public function __construct($name)
 {
     parent::__construct($name, 'oauth2');
     $this->scopes = [];
 }
開發者ID:catlabinteractive,項目名稱:charon,代碼行數:9,代碼來源:OAuth2Authentication.php


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