The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Datamanager inside a class
Hi I'm trying to write a class to use the Datamanager. This will actually be part of a plugin to my existing system. So far all plugins are defined as classes. I have this code so far:
PHP Code:
However I can't figure out how to move the require_once to be called in the constructor of the class. It really has to be this way but once I do it I get: Code:
Warning: array_keys() [function.array-keys]: The first argument should be an array in /includes/functions.php on line 3699 Warning: Invalid argument supplied for foreach() in /includes/functions.php on line 3699 Fatal error: Call to a member function query_read_slave() on a non-object in /home/cyclecha/public_html/4um/includes/functions.php on line 2772 |
#2
|
||||
|
||||
Before PHP 5, the constructor needs to have the same name as the class itself.
Try adding this function. PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|