You are here: Re: real world singleton class example? « PHP Programming Language « IT news, forums, messages
Re: real world singleton class example?

Posted by Jerry Stuckle on 12/01/06 13:18

d.adamkiewicz@i7.com.pl wrote:
> Hello Folks
>
> Anybody can show me real world singleton class example?
> Something that works (is implemented) as part of working solution.
> Does it make sense to create database handler class that way?
>
> Regards
> Darek
>

Darek,

I've used them for database classes before. It allows me to have
multiple classes (representing my business-layer logic) using the same
instance without worrying about whether the object has been previously
defined or used.

Because of the transactional nature of web pages, they aren't as useful
as in other programs. But they still have a use.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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