How to use the Singleton Design Pattern

Tutorials Shared by the Internet Community

Advertisements


Synopsis

This particular pattern provides a method for limiting the number of instances of an object to just one.

Statistics

  • Total Hits - 26862

  • Total Votes - 98 votes

  • Vote Up - 42 votes

  • Vote Down - 56 votes

  • Domain - www.talkphp.com

  • Category - PHP/Object Oriented

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-03-16 07:49:52

Description

The Singleton Pattern is one of the GoF (Gang of Four) Patterns. This particular pattern provides a method for limiting the number of instances of an object to just one. It's an easy pattern to grasp once you get past the strange syntax used. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements