Implements and enforces the singleton design pattern.

The singleton pattern applies to situations where you need a single, global instance of
a class.

By making the implementing class constructor and destructor protected, the ability to
create instances is restricted to the class's family contacts. The class's usage is
restricted to only the one static instance defined here.

Class Methods

The following methods can be invoked on instances of this class.

__construct()

Constructor

__clone()

Clone

instance()

Returns an instance of the object

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class