Properties

$cache

$cache : 

Cache frequently used data

Type

$appDir

$appDir : 

Type

$exists

$exists : 

Type

$info

$info : 

Type

$enabled

$enabled : 

Type

$manifestConfig

$manifestConfig : 

Default values in manifest.json

Type

$appsDir

$appsDir : 

Location of apps directory

Type

$appsURL

$appsURL : 

URL to apps directory

Type

$appUpdates

$appUpdates : 

App Updates App => $latestVersion

Type

$activeApp

$activeApp : 

This will contain the App object when app is running

Type

$activeAppInstance

$activeAppInstance : 

Type

$app

$app : 

The App ID

Type

Methods

__constructStatic()

__constructStatic(array  $appsVARS) 

Parameters

array $appsVARS

Contains path and URL to apps folder

clearCache()

clearCache() 

getApps()

getApps() 

Get the apps that are in the directory as array

getEnabledApps()

getEnabledApps() 

Returns enabled apps as an array

getDisabledApps()

getDisabledApps() 

Returns disabled apps as an array

getAppsDir()

getAppsDir() 

exists()

exists(  $app) 

Check if an app exists

Parameters

$app

normalizeID()

normalizeID(  $appID) 

Make App ID into Class Name

Parameters

$appID

valid()

valid(string  $appID = "", boolean  $basicCheck = true) 

Check if App is valid and it meets criteria of Lobby

Parameters

string $appID

The Apps' ID

boolean $basicCheck

Whether it should be a simple/basic check

__construct()

__construct(  $id) 

Make an object of App

Parameters

$id

enableApp()

enableApp() 

Enable the app

disableApp()

disableApp() 

Disable the app

removeApp()

removeApp() 

Disable app and remove the app files recursilvely from the directory

checkRequirements()

checkRequirements() 

Check requirements of app

getDBSize()

getDBSize(  $normalizeSize = false) 

Get size used in database

Parameters

$normalizeSize

hasUpdate()

hasUpdate(  $latestVersion = null) 

Whether app update is available Provide $latestVersion to check if it's a latest version

Parameters

$latestVersion

clearData()

clearData() 

getInstance()

getInstance() 

Get the App object

run()

run() 

Return the app class object

getInfo()

getInfo(  $key) 

Get config value of currently running app

Parameters

$key

isAppRunning()

isAppRunning() 

Whether Lobby is in app-mode

getRunningInstance()

getRunningInstance() 

setInfo()

setInfo() 

Get the manifest info of app as array