PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 361 All time: 6,884 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.

Picture of freedelta
Name: freedelta <contact>
Classes: 3 packages by
Country: France France
Age: 64
All time rank: 151847 in France France
Week rank: 312 Up15 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,884
This week:1,173Up