Login   Register  
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 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 359 All time: 6,170 This week: 1,467Up
Version License PHP version Categories  
simple-singleton 1.0GNU General Public Lice...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: 54
All time rank: 153649 in France France
Week rank: 1130 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:359All time:6,170
 This week:0This week:1,467Up