refactor
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
include_once "../../global.inc.php";
|
||||
|
||||
namespace database;
|
||||
|
||||
include_once "../../global.inc.php";
|
||||
|
||||
/**
|
||||
* The SQLManager manage the SQL-Connection for an API
|
||||
* @author stubbfel
|
||||
@@ -44,7 +44,7 @@ abstract class SqlManager {
|
||||
/**
|
||||
* Default-Constructor
|
||||
*/
|
||||
public function SQLManager() {
|
||||
public function __construct() {
|
||||
include_once PATH_CONFIG . "/config.db.php";
|
||||
$this->serverAddress = $sqlServer;
|
||||
$this->dbName = $sqlDBName;
|
||||
@@ -83,7 +83,7 @@ abstract class SqlManager {
|
||||
public function closeConnection() {
|
||||
if ($this->link) {
|
||||
mysql_close($this->link);
|
||||
$this->link =null;
|
||||
$this->link = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user