This commit is contained in:
stubbfel
2013-06-20 11:57:59 +02:00
parent aa7eb9c3ea
commit 1045724798
9 changed files with 44 additions and 98 deletions

View File

@@ -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;
}
}