Re: pear DB class extension

From: Date: Wed, 27 Feb 2002 08:55:52 +0000
Subject: Re: pear DB class extension
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-912@lists.php.net to get a copy of this message
The file must be in a "DB" directory that may be anywhere in your include path. - Stig On Wed, 2002-02-27 at 00:25, Chris Ng wrote: > hi all, > is it possible to extend the PEAR DB class? i'm having some trouble with > file includes while trying to extend the mysql class. (filename: > "mysqlplus.php") > > does the file have to be in the /usr/local/lib/php/ directory somewhere? > i tried having a copy of "DB.php" and the "DB" directory locally but it > still didn't work. > > code as below: > > <?php > > include_once "DB/mysql.php"; > > class DB_mysqlplus extends DB_mysql > { > // {{{ properties > > // }}} > // {{{ constructor > > /** > * DB_mysql constructor. > * > * @access public > */ > > function DB_mysqlplus() > { > $this->DB_mysql(); > $this->phptype = 'mysqlplus'; > $this->dbsyntax = 'mysql'; > } > > function goat() { > return "goat"; > } > } > > ?> > > TIA, > > chris > > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.general (#912) next »