KjwUtil Class Reference

KjwUtil contains various static methods. More...

List of all members.

Public Member Functions

getSingleton ($className)
 Get a singleton instance.


Detailed Description

KjwUtil contains various static methods.

Note:
Unused.

Definition at line 25 of file KjwUtil.php.


Member Function Documentation

& KjwUtil::getSingleton ( className  ) 

Get a singleton instance.

You call your singleton class like this: $theClassInstance = &KjwSingleton::getInstance("ClassName"[, optional arguments]);

Parameters:
$className The name of the class. If not included yet, this should be the same as the filename.
... Optional arguments to the constructor.
Note:
Make sure you use case sensitive names! PHPs case-insensitivity might cause problems.

You can't pass variables by reference, due to the way PHP4 func_get_args works. If you want references, hand them to the instance afterwards.

Definition at line 38 of file KjwUtil.php.


The documentation for this class was generated from the following file:

Generated on Wed Apr 8 22:16:36 2009 for KjwLib-php45 by  doxygen 1.5.8