Multi Singleton

Package:
Multi Singleton
Summary:
Implementation of the singleton design pattern
Groups:
Design Patterns, PHP 5
Author:
Sebastian Potasiak
Description:
This class implements the singleton design pattern.

It provides an interface that has a constructor function that once called stored objects of each singleton class in static array class variable.

This way the objects of a singleton class are only instantiated once.


Powered by Gewgley