public function _initDB() { $this->_dB = Flight::connectMysqlDB(); if (!$this->_dB) { $this->errMsg = "db error"; $this->errCode = GAME_ERR_DB_EXEC; return false; } return true; }
public static function closeMysqlDB() { $mysqlDB = Flight::connectMysqlDB(); mysql_close($mysqlDB); }