I use PDO, I do not know how this can help in this situation, but still. In general, is it possible to do this:
The names of the tables of the connected database must become (fields / methods), and have their own methods (fields). And in fact it's just a chain of methods coming out.
For example (let's say we connect to the test database and it has the Users table)
$m = new MDB(); $m->Users()->GetRec($a);