本文整理汇总了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);
}
示例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;
}
示例3: __construct
public function __construct($parameters = NULL, $AuthenticationType = NULL)
{
if (get_parent_class('DfpOAuth')) {
parent::__construct();
}
$this->parameters = $parameters;
$this->AuthenticationType = $AuthenticationType;
}
示例4: __construct
public function __construct($parameters = NULL, $AuthenticationType = NULL)
{
parent::__construct();
$this->parameters = $parameters;
$this->AuthenticationType = $AuthenticationType;
}
示例5: __construct
public function __construct($path, array $roles)
{
$newpath = FilterPath::restrictController($path);
parent::__construct($newpath, $roles);
}
示例6: __construct
public function __construct($env)
{
parent::__construct($env);
}
示例7: __construct
public function __construct()
{
$params = array('user' => new FauxObject(), 'session' => new FauxObject(), 'credential' => new FauxObject());
parent::__construct($params);
}
示例8:
function __construct(){
parent::__construct();
$this->contact_id = $_SESSION['contact_id'];
$this->contact_user_name = $_SESSION['contact_user_name'];
}
示例9: __construct
public function __construct($path, array $roles)
{
$arr = explode('.', $path);
$newpath = FilterPath::restrictMethod($arr[0], $arr[1]);
parent::__construct($newpath, $roles);
}
示例10: __construct
/**
* OAuth2Authentication constructor.
* @param string $name
*/
public function __construct($name)
{
parent::__construct($name, 'oauth2');
$this->scopes = [];
}