Re: PHP::Pear::DB
| From: | rombertworf@xnet.ro | Date: | Fri, 19 Sep 2003 12:47:21 +0000 |
| Subject: | Re: PHP::Pear::DB | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-7920@lists.php.net to get a copy of this message | ||
Patrick,
Depending on your application architecture, you could also include this in your Controller class,
and thus keep it DB-Independent, perhaps even using PEAR::Log.
Robert
---------Mesaj Inclus----------
>Return-Path: <pear-general-return-7914-rombertworf=xnet.ro@lists.php.net>
>Received: from localhost by xsams2 with LMTP for <rombertworf@xnet.ro>; Fri, 19 Sep 2003
>14:31:25 +0300
>Received: from mta2.xnet.ro (mta2.xnet.ro [217.10.192.226])
> by xsams2.xnet.ro (Switch-2.2.8/Switch-2.2.6) with ESMTP id h8JBVPD05029
> for <rombertworf@xnet.ro>; Fri, 19 Sep 2003 14:31:25 +0300
>Received: from pb1.pair.com (pb1.pair.com [216.92.131.4])
> by mta2.xnet.ro (Switch-3.1.2/Switch-3.1.0) with SMTP id h8JBVNTm019981
> for <rombertworf@xnet.ro>; Fri, 19 Sep 2003 14:31:24 +0300
>Received: (qmail 13683 invoked by uid 1010); 19 Sep 2003 11:31:19 -0000
>Mailing-List: contact pear-general-help@lists.php.net; run by ezmlm
>Precedence: bulk
>list-help: <mailto:pear-general-help@lists.php.net>
>list-unsubscribe:
><mailto:pear-general-unsubscribe@lists.php.net>
>list-post: <mailto:pear-general@lists.php.net>
>Delivered-To: mailing list pear-general@lists.php.net
>Received: (qmail 13670 invoked by uid 1010); 19 Sep 2003 11:31:19 -0000
>Delivered-To: ezmlm-scan-pear-general@lists.php.net
>Delivered-To: ezmlm-pear-general@lists.php.net
>content-class: urn:content-classes:message
>Date: Fri, 19 Sep 2003 13:31:11 +0200
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>Message-ID: <67434F035452D411B4300008C75DF6550D78B25F@apl342>
>X-MS-Has-Attach:
>X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0
>X-MS-TNEF-Correlator:
>Thread-Topic: PHP::Pear::DB
>Thread-Index: AcN+oYcJkgvhq0ZbQF6Fsh4lYIQtQg==
>From: <patrick.allaert@belgacom.be>
>To: <pear-general@lists.php.net>
>Subject: [PEAR] PHP::Pear::DB
>X-RAVMilter-Version: 8.4.3(snapshot 20030212) (mta2.xnet.ro)
>X-Wilter: on xsams2.
>
>
>Hello,
>
>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 ?
>
>Thanks for all
>
>Regards,
>
>Patrick Allaert
>
>**** DISCLAIMER ****
>"This e-mail and any attachments thereto may contain information
>which is confidential and/or protected by intellectual property
>rights and are intended for the sole use of the recipient(s)named above.
>Any use of the information contained herein (including, but not limited to,
>total or partial reproduction, communication or distribution in any form)
>by persons other than the designated recipient(s) is prohibited.
>If you have received this e-mail in error, please notify the sender either
>by telephone or by e-mail and delete the material from any computer.
>Thank you for your cooperation."
>
>--
>PEAR General Mailing List (http://pear.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
---------Sfarsitul mesajului inclus----------
-------------------------------------------------------
Xnet scaneaza automat toate mesajele impotriva virusilor folosind RAV AntiVirus.
Xnet automatically scans all messages for viruses using RAV AntiVirus.
Nota: RAV AntiVirus poate sa nu detecteze toti virusii noi sau toate variantele lor.
Va rugam sa luati in considerare ca exista un risc de fiecare data cand deschideti
fisiere atasate si ca MobiFon nu este responsabila pentru nici un prejudiciu cauzat
de virusi.
Disclaimer: RAV AntiVirus may not be able to detect all new viruses and variants.
Please be aware that there is a risk involved whenever opening e-mail attachments
to your computer and that MobiFon is not responsible for any damages caused by
viruses.