function __construct($dbstring = null, $dbuser = null, $dbpass = null, $dbname = null, $dbauthsrc = null) { $this->dbstring = $dbstring; $this->dbuser = $dbuser; $this->dbpass = $dbpass; $this->dbname = $dbname; $this->dbauthsrc = $dbauthsrc; if (empty($dbstring)) { $this->dbstring = \Idno\Core\Idno::site()->config()->dbstring; } if (empty($dbuser)) { $this->dbuser = \Idno\Core\Idno::site()->config()->dbuser; } if (empty($dbpass)) { $this->dbpass = \Idno\Core\Idno::site()->config()->dbpass; } if (empty($dbname)) { $this->dbname = \Idno\Core\Idno::site()->config()->dbname; } if (empty($dbauthsrc)) { $this->dbauthsrc = \Idno\Core\Idno::site()->config()->dbauthsrc; } parent::__construct(); }
function __construct($dbuser = null, $dbpass = null, $dbname = null, $dbhost = null, $dbport = null) { $this->dbuser = $dbuser; $this->dbpass = $dbpass; $this->dbname = $dbname; $this->dbhost = $dbhost; $this->dbport = $dbport; if (empty($dbuser)) { $this->dbuser = \Idno\Core\Idno::site()->config()->dbuser; } if (empty($dbpass)) { $this->dbpass = \Idno\Core\Idno::site()->config()->dbpass; } if (empty($dbname)) { $this->dbname = \Idno\Core\Idno::site()->config()->dbname; } if (empty($dbhost)) { $this->dbhost = \Idno\Core\Idno::site()->config()->dbhost; } if (empty($dbport)) { $this->dbport = \Idno\Core\Idno::site()->config()->dbport; } parent::__construct(); }