So i have written two custom datamanagers, one saves/updates the main info, while I use the other (within a loop) to update the related records.
I have to call the database from within each of the DMs to update some other tables with related info as well, and while looking at vbulletin's existing datamanagers, i see more than one method of calling the database, for example:
Within class_dm_threadpost some calls to thge database are made like this:
Code:
$this->dbobject->query_write
However within class_dm_infraction, calls are made like this:
Code:
$this->registry->db->query_write
What I want to know, is why is one method used in one instance, and another in another? I think both acheive exactly the same results but why are jelsoft using different methods to call the database?