Re: Static variable in a class method
| From: | Robert Cummings | Date: | Thu, 14 Feb 2008 20:27:57 +0000 |
| Subject: | Re: Static variable in a class method | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269315@lists.php.net to get a copy of this message | ||
On Thu, 2008-02-14 at 15:21 -0500, Eric Butera wrote:
> On Thu, Feb 14, 2008 at 3:07 PM, Richard Lynch <ceo@l-i-e.com> wrote:
> > On Thu, February 14, 2008 11:10 am, Eric Butera wrote:
> > > Just FYI the static keyword was quite popular in PHP4 for the
> > > singleton pattern. You could do something like:
> >
> > I have used and will continue to use the static keyword in functions,
> > and will most likely never use a class in PHP...
> >
> > If a website is complicated enough to need a class hierarchy, then
> > something is wrong in your Design. :-) :-) :-)
There's something wrong with re-usable components that are extended as
separate classes? Weird, I thought that was half the purpose of OOP.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'