/** * getInstance * * @return void */ public static function getInstance() { if (!is_object(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; }
/** * __construct * * @return void */ public function __construct() { $this->config =& Joy_Config::getInstance(); $this->event =& Joy_Event::getInstance(); $this->cache =& Joy_Cache::getInstance(); $this->_registerEvents(); $this->_init(); }