Re: [PHP-DB] Extending Pear DB class. Is it possible?

2004-05-17 Thread Robert Twitty
It appears that you want to extend DB_coomon not DB. The reason is because $dbh = MyDB::connect( $dsn ); returns an instance of the DB_common class. However, DB_common is the base class for writing a PEAR DB driver class. And, what is really returned by DB::connect() is an instance of the

[PHP-DB] Extending Pear DB class. Is it possible?

2004-05-16 Thread Ross Honniball
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