Reply to The Singleton Pattern in PHP 5

Your name:

Reply:


Posted by FluffyCat on 01/14/06 02:20

To add to my growing library of Design Patterns in PHP 5 I have
written what I think is a good example of the Singleton Pattern.

http://www.fluffycat.com/PHP-Design-Patterns/Singleton/

In the classic singleton pattern an object will distribute one and
only one instance of itself. This can be useful for the sharing of
resources such as a single db or network connection.

A variation, sometimes called a multiton, would distribute a limited
number of instances of itself. Useful, say if you had a limited
number of db connections to share.

[Back to original 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

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