Extending Pear DB class. Is it possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux