If $obj is meant to be a system wide globally accessible object, you can you use the singleton pattern to access from anywhere:
class MyClass
{
protected static $_instance;
static function getInstance()
#theres #based #configuration #self::$_instance #self::$_instance)
https://stackoverflow.com/questions/1... https://stackoverflow.com/questions/1...