Re: DB_DataObject without .ini
| From: | Alan Knowles | Date: | Fri, 06 Feb 2004 10:08:22 +0000 |
| Subject: | Re: DB_DataObject without .ini | ||
| References: | 1 2 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-10526@lists.php.net to get a copy of this message | ||
Just dont set the lines
schema=
or
ini_*=
in the config, and it should query the database once per request to discover the database structure.
there is an example of it in CVS : tests/simple.phpt
Regards
Alan
Markus Tacker wrote:
Hallo Marcos Neves, Marcos Neves wrote:-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.comI want to use the class created by the generator.php but don't want to use .ini to hold conf, I want to implement this at the code. I don't want an "on the fly" DB_DataObject, but just "iniless" What methods( and how ) I need to implement at the class, and what I need to startup at the $options array.Just give $GLOBALS['_DB_DATAOBJECT']['INI'] and $GLOBALS['_DB_DATAOBJECT']['LINKS']) the desired values by an include script. These Arrays are set in DB_DataObject::databaseStructure() by performing a parse_ini_file() oround line 1479.