* @copyright NB 19.11.16
* Return a db hash to create a new instance from $conf
*/
- public static function conf_param_db($id) {
+ private static function conf_param_db($id) {
if (!isset($id)) $id = self::p('db');
if (!$id or !preg_match('/^(\w+):(.*)/',$id,$m)) return [];
if (isset($Table)) self::bye("Table.init(): GLOBALS['Table'] already exists !");
if (isset($Db)) self::bye("Db.init(): GLOBALS['Db'] already exists !");
$Db = new self();
- #
- # Connection
+
+ # Db Connection
$Db->__construct($db);
$Db->connect();