function __construct($dbConfig = NULL, $tableName = "common_singleton") { if ($dbConfig == NULL) { $this->db = new Db(PhpLearnDbConfig()); } else { $this->db = new Db($dbConfig); } $this->tableName = $tableName; }
function __construct() { $this->db = new DbMysqli(PhpLearnDbConfig()); }