For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > May 2004 > Extending Pear DB class. Is it possible?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Extending Pear DB class. Is it possible?
Ross Honniball

2004-05-17, 1:30 am

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







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com