1
Dear All,
I have noticed that almost all XOOPS modules use a global variable $xoopsDB, which pressumably refers to the XOOPS database.
I would like to know where it is instantiated and whether somebody could declare a second database as a local variable for a certain module.
Suppose, for example, I want to select available polls from a database with tables prefix xoops12 that is different from the one that I use for the site that has the prefix xoops. Would I copy the code from databasefactory.php (if I am not wrong) and have another local variable used within that module? If so, how would I then destroy it?
I look forward to hearing from you soon.
Thanks in advance.
George