Login   Register  
PHP Classes
elePHPant
Icontem

Simple Singleton and Multiton Class

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Andrei Alexandru
Name: Andrei Alexandru <e-mail contact>
Packages: 2 Browse all classes by Andrei Alexandru Browse all classes by
Country: Spain Spain - PHP jobs in Spain
Age: 27
All time rank: 252061 in Spain Spain
Week rank: 871 Up19 in Spain Spain Up
Innovation award
Innovation award
Nominee: 1x


  Detailed description   Download .zip .tar.gz  
This package can be used to create and manage one or more singleton objects.

There is one class that can manage one singleton object, assuring that only one instance of the class is created.

Another class can manage multiple singleton objects which are distinguished by name.

  Classes of Andrei Alexandru  >  Simple Singleton and Multiton Class  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Simple Singleton and Multiton Class
Base name: singleton-multiton
Description: Create and manage one or more singleton objects
Version: 1.0
PHP version: 5.0
License: GNU Lesser General Public License (LGPL)
All time users: 510 users
All time rank: 4895
Week users: 2 users
Week rank: 1363 Up
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Design Patterns Implementations of well known design patterns View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
August 2010
Number 10
Singleton is a common design pattern used to assure that only one object of a given class is created within the lifetime of a running script.

Sometimes you need to manage multiple singletons for different classes. This package can be used to manage the creation of multiple singletons within the same script.

Manuel Lemos

  User ratings  
Ratings
Utility
Consistency
Documentation
Examples
Tests
Videos
Overall
Rank
All time:
Sufficient (66.7%)
Sufficient (75.0%)
-
Not sure (58.3%)
-
-
Not sure (46.7%)
1743
Month:
Not yet rated by the users

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Accessible without login Plain text file multiton.class.php Class Multiton Implementation Class
Accessible without login Plain text file multiton.test.php Example Usage ot the multiton Class
Accessible without login Plain text file singleton.class.php Class Singleton Implementation Class
Accessible without login Plain text file singleton.test.php Example Usage ot the singleton Class

Download all files: singleton-multiton.tar.gz singleton-multiton.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.