wrapper for a wrapper

From: Date: Thu, 24 Jan 2002 00:38:08 +0000
Subject: wrapper for a wrapper
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-708@lists.php.net to get a copy of this message
I'm creating an abstraction layer that extends the PEAR DB. A wrapper for a wrapper, you might say. The reason is, we have tons of code already using a custom wrapper and I want to continue to use the old function names (db_fetch_array(), db_qry(), etc), and, in case I must switch to another DB wrapper in the future. I've created a Class with a Constructor that creates a new PEAR::DB object. I can call my Class' Methods and everything works fine. The problem is when I instantiate a new second Class to connect to a different database using a different $dsn. Both DB objects will access the second database, even when in PEAR::DB $this->connection is different for each object. I am completely bewildered. Any suggestions are most appreciated. Source code is available at: http://www.kilometerzero.org/pearwrapper.tar.gz Many thanks, Quinn Comendant

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