Jeff PHP framework
0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
|
Singleton primitive class. More...
Public Member Functions | |
__clone () | |
Clone method. | |
__sleep () | |
Sleep method. | |
__wakeup () | |
Wakeup method. | |
Static Public Member Functions | |
static | instance () |
Method used to retrieve singleton instances. | |
Protected Member Functions | |
__construct () | |
Singleton constructor. | |
Static Protected Attributes | |
static | $_instances = array() |
Singleton primitive class.
Class which implemets the singleton pattern and assures the existence of only one object instance
Definition at line 23 of file singleton.class.php.
singleton::__construct | ( | ) | [protected] |
Singleton constructor.
This method is protected in order to deny direct object instantiation outside this class and the ones which extends it
Definition at line 38 of file singleton.class.php.
Clone method.
Singleton cloning is denied
Definition at line 67 of file singleton.class.php.
Sleep method.
Singleton serialization is denied
Definition at line 78 of file singleton.class.php.
Wakeup method.
Singleton serialization is denied
Definition at line 89 of file singleton.class.php.
static singleton::instance | ( | ) | [static] |
Method used to retrieve singleton instances.
if the singleton instance already exists returns it, otherwise creates an instance and returns it
Reimplemented in db.
Definition at line 49 of file singleton.class.php.
singleton::$_instances = array() [static, protected] |
Definition at line 28 of file singleton.class.php.