/** * @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); }
/** * 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; }
public function __construct($parameters = NULL, $AuthenticationType = NULL) { if (get_parent_class('DfpOAuth')) { parent::__construct(); } $this->parameters = $parameters; $this->AuthenticationType = $AuthenticationType; }
public function __construct($parameters = NULL, $AuthenticationType = NULL) { parent::__construct(); $this->parameters = $parameters; $this->AuthenticationType = $AuthenticationType; }
public function __construct($path, array $roles) { $newpath = FilterPath::restrictController($path); parent::__construct($newpath, $roles); }
public function __construct($env) { parent::__construct($env); }
public function __construct() { $params = array('user' => new FauxObject(), 'session' => new FauxObject(), 'credential' => new FauxObject()); parent::__construct($params); }
function __construct(){ parent::__construct(); $this->contact_id = $_SESSION['contact_id']; $this->contact_user_name = $_SESSION['contact_user_name']; }
public function __construct($path, array $roles) { $arr = explode('.', $path); $newpath = FilterPath::restrictMethod($arr[0], $arr[1]); parent::__construct($newpath, $roles); }
/** * OAuth2Authentication constructor. * @param string $name */ public function __construct($name) { parent::__construct($name, 'oauth2'); $this->scopes = []; }