1
london
Where is xoopsDB instatiated?
  • 2006/1/17 18:11

  • london

  • Just popping in

  • Posts: 23

  • Since: 2005/6/8 2


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

Login

Who's Online

418 user(s) are online (300 user(s) are browsing Support Forums)


Members: 0


Guests: 418


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits