Simple Singleton and Multiton Class

Package:
Simple Singleton and Multiton Class
Summary:
Create and manage one or more singleton objects
Groups:
Design Patterns, PHP 5
Author:
Andrei Alexandru
Description:
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.


Powered by Gewgley