コード例 #1
0
ファイル: walleye.php プロジェクト: Jsnrkd/Walleye
 /**
  * Makes sure Walleye is handled as a singleton. This function will give you
  * the instance of Walleye.
  *
  * @return Walleye
  */
 public static function getInstance()
 {
     if (!self::$me) {
         self::$me = new Walleye();
     }
     return self::$me;
 }
コード例 #2
0
ファイル: walleye.php プロジェクト: Jmayhak/Walleye
 /**
  * Makes sure Walleye is handled as a singleton. This function will give you
  * the instance of Walleye.
  *
  * @param array $appOptions
  * @param array $routes
  * @param array $dbOptions
  * @return Walleye
  */
 public static function getInstance($appOptions = array(), $routes = array(), $dbOptions = array())
 {
     if (!self::$me) {
         self::$me = new Walleye($appOptions, $routes, $dbOptions);
     }
     return self::$me;
 }