Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Bug #612 databaseStructure() says it's static, but it may not be
Submitted: 2004-01-22 18:33 UTC
From: justinpatrin Assigned: alan_k
Status: Closed Package: DB_DataObject
PHP Version: 4.3.3 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-01-22 18:33 UTC] justinpatrin
Description: ------------ databaseStructure() docs say that it is static, but it makes use of $this->_database and $this->_table when called with no arguments. As a side note, how should I be loading the configration for a database? The DB_DataObject config is loaded from the ini file at the beginning of my script, but the database's INI settings aren't loaded until I use a table. I want to be able to get a listing of tables in the DB before making a DO. Reproduce code: --------------- DB_DataObject::databaseStructure();

Comments

 [2004-01-24 07:22 UTC] alan_k
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. fixed in CVS try print_r(DB_DataObject::databaseStructure('databasename')); ** it will also return *__key in the array.. otherwise try $db = new DB_DataObject; $DB = $db->getDatabaseConnection(); $DB->getListOf('tables');