Пример #1
0
 /**
  * Get the singleton instance
  * @return  Loader
  */
 public static function instance()
 {
     if (self::$instance == null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Пример #2
0
 /**
  * Unset the default registry instance.
  * Primarily used in tearDown() in unit tests.
  * 
  * @access public
  * @return void
  */
 public static function _unsetInstance()
 {
     self::$_oRegistry = null;
 }