示例#1
0
文件: Apps.php 项目: LobbyOS/server
 /**
  * @param array $appsVARS Contains path and URL to `apps` folder
  */
 public static function __constructStatic($appsVARS)
 {
     self::$appsDir = $appsVARS[0];
     self::$appsURL = Lobby::u($appsVARS[1]);
     /**
      * Make array like this :
      * "AppID" => 0
      */
     $appsAsKeys = array_flip(self::getApps());
     array_walk($appsAsKeys, function (&$val) {
         $val = 0;
     });
     self::$appUpdates = array_replace_recursive($appsAsKeys, DB::getJSONOption("app_updates"));
 }
示例#2
0
文件: Update.php 项目: LobbyOS/server
 public static function getApps()
 {
     return DB::getJSONOption("app_updates");
 }