Class Singleton

Description

Singleton base class for subclassing generic singleton pattern

classes

  • abstract:

Located in /system/classes/singleton.php (line 7)


	
			
Direct descendents
Class Description
URL URL class which handles creation of URLs based on the rewrite rules in the database. Uses rules to construct pretty URLs for use by the system and especially the theme's template engine
Options Habari Options Class
Controller Class which handles incoming requests and drives the MVC strategy for building the model and assigning to a view.
DB Habari DB Class
Update Update class Checks for updates to Habari and its libraries
Method Summary
static object instance getInstanceOf ( $class)
static object instance instance ()
Singleton __construct ()
Methods
static method getInstanceOf (line 43)

Returns the single shared static instance variable which facilitates the Singleton pattern

  • access: protected
static object instance getInstanceOf ( $class)
  • $class
static method instance (line 18)

Declarations that extend this method must have the same signature (arguments and returned types) to pass E_STRICT

  • access: protected
static object instance instance ()

Redefined in descendants as:
Constructor __construct (line 55)

Prevent instance construction and cloning (copying of object

instance)

  • access: protected
Singleton __construct ()

Documentation generated on Thu, 30 Oct 2008 20:31:26 +0100 by phpDocumentor 1.3.2