Extending Pear DB class. Is it possible?
| From: | Ross Honniball | Date: | Mon, 17 May 2004 04:41:45 +0000 |
| Subject: | Extending Pear DB class. Is it possible? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-34448@lists.php.net to get a copy of this message | ||
Hi all,
I'd like to extend the standard Pear DB class, but there is something a bit curly about it.
PHP lets me create a class like:
class mydb extends DB { functions etc. }
however the new class mydb will not include all the functions. I think it is only including all the functions defined in the 'common.php' file.
The 'mydb' class above won't, for example, have the 'query' function, even after successfully connecting to a database.
Anyone know how to go about extending the Pear DB class?
.
. Ross Honniball. JCU Bookshop Cairns, Qld, Australia.
.