Example #1
0
 public static function setParameters($dbHost, $dbUser, $dbPassword, $dbName)
 {
     self::$dbHost = $dbHost;
     self::$dbUser = $dbUser;
     self::$dbPassword = $dbPassword;
     self::$dbName = $dbName;
 }
 private function _handleDb()
 {
     Database::$dbType = $this->_conf->get('database_type');
     Database::$dbHost = $this->_conf->get('database_host');
     Database::$dbName = $this->_conf->get('database_name');
     Database::$dbUsername = $this->_conf->get('database_username');
     Database::$dbPassword = $this->_conf->get('database_password');
 }