DBal migration completed #6 and #4 repaired

This commit is contained in:
José Luis Garrido Labrador
2018-10-11 15:39:11 +02:00
parent dffbaacfbd
commit be6caf9702
16 changed files with 771 additions and 1840 deletions

View File

@@ -87,6 +87,18 @@ class Config
return dbw_connect($DB["SGBD"], $DB["path"], $DB["db"], $DB["user"], $DB["password"]);
}
public static function getDBalConexion(){
if(!Config::initialized())
Config::init();
$DB = Config::$config["database"];
return array(
'dbname' => $DB['db'],
'user' => $DB['user'],
'password' => $DB['password'],
'host' => $DB['path'],
'driver' => "pdo_".$DB['SGBD']);
}
/**
* Get options of project if exists
*