コード例 #1
0
ファイル: Registry.php プロジェクト: rmasters/php-mvc
 /**
  * Get the singleton instance
  * @return  Loader
  */
 public static function instance()
 {
     if (self::$instance == null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
コード例 #2
0
ファイル: Registry.php プロジェクト: gueff/mymvc
 /**
  * Unset the default registry instance.
  * Primarily used in tearDown() in unit tests.
  * 
  * @access public
  * @return void
  */
 public static function _unsetInstance()
 {
     self::$_oRegistry = null;
 }