Exemple #1
0
 /**
  * getInstance
  * 
  * @return void
  */
 public static function getInstance()
 {
     if (!is_object(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Exemple #2
0
 /**
  * __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();
 }