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');
 }
Example #2
0
 public static function close($dbsortName = 'default')
 {
     global $db;
     if (!is_array($db[$dbsortName])) {
         return false;
     }
     self::$dbinfo = $db[$dbsortName];
     self::$dbType = $db[$dbsortName]['dbtype'];
     switch ($db[$dbsortName]['dbtype']) {
         case "mysqli":
             if (mysqli_close(self::$dbConnect)) {
                 return true;
             }
             return false;
             break;
     }
 }