This commit is contained in:
stubbfel
2013-06-20 12:05:04 +02:00
parent 1045724798
commit b857c4386b
82 changed files with 1727 additions and 1446 deletions

View File

@@ -3,6 +3,7 @@
namespace database;
include_once "../../global.inc.php";
include_once PATH_CONFIG . "/config.db.php";
/**
* The SQLManager manage the SQL-Connection for an API
@@ -45,11 +46,11 @@ abstract class SqlManager {
* Default-Constructor
*/
public function __construct() {
include_once PATH_CONFIG . "/config.db.php";
$this->serverAddress = $sqlServer;
$this->dbName = $sqlDBName;
$this->userName = $sqlDBUser;
$this->userPw = $sqlDBUserPW;
$this->serverAddress = \config\DBConfig::$sqlServer;
$this->dbName = \config\DBConfig::$sqlDBName;
$this->userName = \config\DBConfig::$sqlDBUser;
$this->userPw = \config\DBConfig::$sqlDBUserPW;
}
/**