You are here: Re: Constructor as a "Reset" Button « PHP Programming Language « IT news, forums, messages
Re: Constructor as a "Reset" Button

Posted by Sanders Kaufman on 07/24/07 20:39

Sanders Kaufman wrote:
> Andy Hassall wrote:
>
>> Perhaps you want a singleton class? This often fits well for databases
>> resources.
>
> Singleton's aren't really OOP.
> They're great for *simulating* OOP, but it's just a cheap knock-off.

That was kinda lame for me to say.

Actually, I have a singleton class that is my db class.
It's aggragated as a property of my abstract base class.

The abstract base class is then used to extend my actual
foundation/framework classes.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация