RE: [PEAR] PHP::Pear::DB

From: Date: Fri, 19 Sep 2003 11:37:09 +0000
Subject: RE: [PEAR] PHP::Pear::DB
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7915@lists.php.net to get a copy of this message
> From: patrick.allaert@belgacom.be [mailto:patrick.allaert@belgacom.be] > Sent: Friday, September 19, 2003 1:31 PM > Just a simple question: > > I would like to log every queries passed to a DB object, since I am using > DB::connect() (who return me a DB_Common object) to connect to my MySQL > DB. > > Of course I could create a function who log the query and then query the > database... but this is not the OO way ! > > Does someone have an idea on how to personalize the behavior of a function > like DB_Common::query() without modifying original files and in a OO way ? It is not possible without wrapping your calls to query(). Regards, Lukas

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