\O3PO_Singleton

A modern implementation of the Singleton Pattern in php.

Summary

Methods
Properties
Constants
instance()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
__clone()
__sleep()
__wakeup()
No private properties found
N/A

Methods

instance()

instance() 

Retuns the singleton

__construct()

__construct() 

Make constructor private, so nobody can call "new Class".

__clone()

__clone() 

Make clone magic method private, so nobody can clone instance.

__sleep()

__sleep() 

Make sleep magic method private, so nobody can serialize instance.

__wakeup()

__wakeup() 

Make wakeup magic method private, so nobody can unserialize instance.