PHP Classes
elePHPant
Icontem

Multi Singleton: Implementation of the singleton design pattern

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2009-12-10 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 739 All time: 4,329 This week: 915Up
Version License PHP version Categories
multi-singleton 1.0GNU General Publi...5.3.0PHP 5, Design Patterns
Description Author

This class implements the singleton design pattern.

It provides an interface that has a constructor function that once called stored objects of each singleton class in static array class variable.

This way the objects of a singleton class are only instantiated once.

Innovation Award
PHP Programming Innovation award nominee
November 2009
Number 5


Prize: One copy of the Zend Studio
Singleton is a design pattern that assures that only one instance of an object is created.

Usually, each class defines its own implementation of the singleton design pattern.

This class can manage singletons of multiple classes.

Manuel Lemos
Picture of Sebastian Potasiak
  Performance   Level  
Name: Sebastian Potasiak <contact>
Classes: 8 packages by
Country: Poland Poland
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Plain text file Singleton.php Class Class file
Plain text file ISingleton.php Class Interface file
Accessible without login Plain text file MyClass.php Example Example class
Accessible without login Plain text file example.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:739
This week:0
All time:4,329
This week:915Up