Re: Coding standards

From: Date: Tue, 17 Jul 2001 01:41:18 +0000
Subject: Re: Coding standards
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-833@lists.php.net to get a copy of this message
On Mon, Jul 16, 2001 at 09:00:36PM -0400, Chuck Hagenbuch wrote : > Quoting Stig S. Bakken <Stig.Bakken@fast.no>: > > > Well, to a certain degree there is. You just need to stay away from > > $this, or at least test if $this === null if you want the method to be > > "statically callable". > > Actually, you can't rely on that - if you call a static method from within > another object, then $this will be the $this of that other object. You can use 'get_class()' on '$this' and figure it out that way. - Markus

« previous php.pear.dev (#833) next »