Re: DB_DataObject debugging - confused by production mode (newbie)

From: Date: Thu, 20 Oct 2005 21:49:59 +0000
Subject: Re: DB_DataObject debugging - confused by production mode (newbie)
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21571@lists.php.net to get a copy of this message
On 10/20/05, philip reed <philipreedtech@gmail.com> wrote: > On 10/20/05, Justin Patrin <papercrane@gmail.com> wrote: > > As for debug, you can set this manually yourself. > > DB_DataObject::debugLevel(<some number from 1-5>); > > Aha... well, that explains it. I read this sentence in the doc for debugLevel: > > This function can not [sic.] be called statically. debug or debugLevel? I don't see anything like that in the docblocks. > > and interpreted that to mean that this syntax was wrong. (Of course > the example's right there below it on the doc so I feel quite silly.) > > Backtracking a bit, what does "call statically" mean in PHP terms? I > thought in general OO terms a static method call meant calling a class > method without an instance of the class. But it seems that this is > in fact the way that you SHOULD call debugLevel(), no? debugLevel should be called like I specified previously. PHP4 doesn't really have static calls...just namespaced calls. It amounts sort of to a static call, though. > > Thanks, > > Philip > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Justin Patrin

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