public function __construct(Database &$db, $table) { $this->db = $db; $this->dbname = $db->getDBName(); $this->table = $db->getTableName($table, false); }
function __construct(Database &$W, $M) { $this->db = $W; $this->dbname = $W->getDBName(); $this->table = $W->getTableName($M, false); }