PHP Classes
elePHPant
Icontem

Simple Singleton: Create singleton objects

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (5 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 360 All time: 6,300 This week: 1,331Up
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: 55
All time rank: 153049 in France France
Week rank: 920 Up29 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:360All time:6,300
 This week:0This week:1,331Up