remove constructor, because it was the same like in the parent class

This commit is contained in:
Uwe Steinmann 2021-09-20 16:42:14 +02:00
parent 63ae861257
commit 8e7d2547b4
2 changed files with 14 additions and 46 deletions

View File

@ -23,22 +23,6 @@ require_once "inc.ClassAuthentication.php";
* @version Release: @package_version@ * @version Release: @package_version@
*/ */
class SeedDMS_DbAuthentication extends SeedDMS_Authentication { class SeedDMS_DbAuthentication extends SeedDMS_Authentication {
/**
* @var object $dms object of dms
* @access protected
*/
private $dms;
/**
* @var object $settings SeedDMS Settings
* @access protected
*/
private $settings;
function __construct($dms, $settings) { /* {{{ */
$this->dms = $dms;
$this->settings = $settings;
} /* }}} */
/** /**
* Do Authentication * Do Authentication

View File

@ -4,10 +4,10 @@
* *
* @category DMS * @category DMS
* @package SeedDMS * @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx>
* @license GPL 2 * @license GPL 2
* @version @version@ * @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx> * @copyright 2010-2016 Uwe Steinmann
* @copyright Copyright (C) 2010-2016 Uwe Steinmann
* @version Release: @package_version@ * @version Release: @package_version@
*/ */
@ -19,26 +19,10 @@ require_once "inc.ClassAuthentication.php";
* @category DMS * @category DMS
* @package SeedDMS * @package SeedDMS
* @author Uwe Steinmann <uwe@steinmann.cx> * @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2010-2016 Uwe Steinmann * @copyright 2010-2016 Uwe Steinmann
* @version Release: @package_version@ * @version Release: @package_version@
*/ */
class SeedDMS_LdapAuthentication extends SeedDMS_Authentication { class SeedDMS_LdapAuthentication extends SeedDMS_Authentication {
/**
* @var object $dms object of dms
* @access protected
*/
private $dms;
/**
* @var object $settings SeedDMS Settings
* @access protected
*/
private $settings;
function __construct($dms, $settings) { /* {{{ */
$this->dms = $dms;
$this->settings = $settings;
} /* }}} */
/** /**
* Do ldap authentication * Do ldap authentication
@ -53,8 +37,8 @@ class SeedDMS_LdapAuthentication extends SeedDMS_Authentication {
* authentication. If that succeeds the user is logged in. If the user doesn't * authentication. If that succeeds the user is logged in. If the user doesn't
* exist in the database, it will be created. * exist in the database, it will be created.
* *
* @param string $username * @param string $username name of user to authenticate
* @param string $password * @param string $password password of user to authenticate
* @return object|boolean user object if authentication was successful otherwise false * @return object|boolean user object if authentication was successful otherwise false
*/ */
public function authenticate($username, $password) { /* {{{ */ public function authenticate($username, $password) { /* {{{ */