PHP Classes
elePHPant
Icontem

Simple Singleton: Create singleton objects

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2010-01-14 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 361 All time: 6,523 This week: 1,173Up
Version License PHP version Categories
simple-singleton 1.0GNU General Publi...5PHP 5, Design Patterns
Description Author

This is a simple class that can be used to create singleton objects.

When requested, it can create an instance of the class itself and store it as static variable.

If the class object was already created and stored in the static variable, the class returns that object.

Name: freedelta <contact>
Classes: 3 packages by
Country: France France
Age: 56
All time rank: 152448 in France France
Week rank: 629 Up22 in France France Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file license.txt Lic. GNU GENERAL PUBLIC LICENSE
Accessible without login Plain text file simplesingleton-example.php Example Class sample use
Plain text file SimpleSingleton.class.php Class Singleton code

 Version Control Unique User Downloads Download Rankings  
 0%
Total:361
This week:0
All time:6,523
This week:1,173Up