XG Proyect

Common
in package

Common class

Table of Contents

APPLICATIONS  = ['home' => ['setSystemTimezone', 'setSession', 'setUpdates', 'isServerOpen'], 'admin' => ['setSystemTimezone', 'setSecure', 'setSession'], 'game' => ['setSystemTimezone', 'setSecure', 'setSession', 'setUpdates', 'isServerOpen', 'checkBanStatus'], 'install' => []]
$is_installed  : bool
Contains the value that indicated if the game is installed or not
$sessions  : Sessions
Contains the Session object
bootUp()  : void
Start the system
getSession()  : Sessions
Get session
autoLoad()  : void
Auto load the core, libraries and helpers
checkBanStatus()  : void
Check if the user is banned
initLanguage()  : void
Init the default language
isServerInstalled()  : void
Check if the server is installed
isServerOpen()  : void
Check if the server is open
setErrorHandler()  : void
Set a new error handler
setSecure()  : void
Set secure page to escape requests
setSession()  : Sessions
Return a new session object
setSystemTimezone()  : void
Set the system timezone
setUpdates()  : void
Set updates

Constants

APPLICATIONS

private mixed APPLICATIONS = ['home' => ['setSystemTimezone', 'setSession', 'setUpdates', 'isServerOpen'], 'admin' => ['setSystemTimezone', 'setSecure', 'setSession'], 'game' => ['setSystemTimezone', 'setSecure', 'setSession', 'setUpdates', 'isServerOpen', 'checkBanStatus'], 'install' => []]

Properties

$is_installed

Contains the value that indicated if the game is installed or not

private bool $is_installed = false

Methods

bootUp()

Start the system

public bootUp(string $app) : void
Parameters
$app : string
Return values
void

autoLoad()

Auto load the core, libraries and helpers

private autoLoad() : void
Return values
void

checkBanStatus()

Check if the user is banned

private checkBanStatus() : void
Return values
void

initLanguage()

Init the default language

private initLanguage() : void
Return values
void

isServerInstalled()

Check if the server is installed

private isServerInstalled() : void
Return values
void

isServerOpen()

Check if the server is open

private isServerOpen() : void
Return values
void

setErrorHandler()

Set a new error handler

private setErrorHandler() : void
Return values
void

setSecure()

Set secure page to escape requests

private setSecure() : void
Return values
void

setSystemTimezone()

Set the system timezone

private setSystemTimezone() : void
Return values
void

setUpdates()

Set updates

private setUpdates() : void
Return values
void

Search results