This object is used to implement the singleton pattern

abstract
package OWR
used_by \OWR\View
used_by \OWR\REST\Controller
used_by \OWR\Controller
used_by \OWR\View\Utilities
used_by \OWR\Cron
used_by \OWR\Threads
used_by \OWR\User
used_by \OWR\Session
used_by \OWR\Logs
used_by \OWR\Filter

 Methods

Cloning is denied This function can NOT be overloaded

__clone() 
access public
author Pierre-Alain Mignot

Executed when an object is unserialized We register the new object

__wakeUp() 
access public
author Pierre-Alain Mignot

Instance getter This function can NOT be overloaded

iGet() : mixed
Static
access public
static
author Pierre-Alain Mignot

Returns

mixedthe instance

Register function This function is called when an object is unserialized and is used to register the instance of the object This function can NOT be overloaded

register(mixed $instance) 
Static
access public
static
author Pierre-Alain Mignot

Parameters

$instance

mixed

the instance to register

Constructor

__construct() 
access protected

 Properties

 

store instancied objects

$_instances : array
access private
static