Example #1
0
 /**
  * Returns a singleton instance of the class
  * 
  * @access public
  * @return Data_Registry
  */
 public static function i()
 {
     if (!self::$_singleton instanceof Data_Registry) {
         self::$_singleton = new self();
     }
     return self::$_singleton;
 }
Example #2
0
 /**
  * Initiate the registry and retrieve the cached data
  * 
  * @access private
  * @return void
  */
 private function setRegistry()
 {
     Usu_Main::i()->setVar('registry', Data_Registry::i());
     Usu_Main::i()->getVar('cache')->retrieve();
 }