\JCOREJCORE_SINGLETON_INTERFACE

interface JCORE_SINGLETON_INTERFACE

Summary

Methods
Constants
singleton()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

singleton()

singleton() 

This must be defined here rather than the abstract class because of scope issues the function should follow this implementation public static function singleton() { echo '<b>singleton['.__METHOD__.']['.__CLASS__.']</b>'; if (!isset(self::$instance)) { $c = __CLASS__; self::$instance = new $c; }

return self::$instance; }