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: 358 All time: 6,132 This week: 1,733Up
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: 154348 in France France
Week rank: 773 Up24 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:358All time:6,132
 This week:0This week:1,733Up