pear DB class extension

From: Date: Tue, 26 Feb 2002 23:25:16 +0000
Subject: pear DB class extension
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-911@lists.php.net to get a copy of this message
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

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