Re: PHP4 static properties - PEAR vs my solution

From: Date: Fri, 06 Oct 2006 15:25:27 +0000
Subject: Re: PHP4 static properties - PEAR vs my solution
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-242750@lists.php.net to get a copy of this message
On Fri, October 6, 2006 7:22 am, Hodicska Gergely wrote: > I'm curious about your opinion. > class base > { > function &staticProperty($name, $value = null) > { > static $properties = array(); This would be Really Nifty, if PHP allowed multiple inheritence so you could have a mixin class... Otherwise, however, you have to have a common base class across all the various class systems in use in your multitude of web applications, or duplicate the code (ugh!) in each. So if you have a single base class to throw this into, it's great. If you have a plethora of code-bases you work with, the global variable hack is probably more suitable. YMMV -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#242750) next »