当前位置: 首页>>代码示例>>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;未经允许,请勿转载。