\ManiaControl\UtilsSystemUtil

System Utility Class

Summary

Methods
Properties
Constants
isWindows()
getOS()
checkRequirements()
quit()
restart()
isUnix()
checkFunctionAvailability()
No public properties found
OS_UNIX
OS_WIN
MIN_PHP_VERSION
getDisabledFunctions()
No protected properties found
N/A
restartUnix()
restartWindows()
No private properties found
N/A

Constants

OS_UNIX

OS_UNIX

OS_WIN

OS_WIN

MIN_PHP_VERSION

MIN_PHP_VERSION

Methods

isWindows()

isWindows() : boolean

Get whether ManiaControl is running on Windows

Returns

boolean

getOS()

getOS() : string

Get the Operating System on which ManiaControl is running

Returns

string

checkRequirements()

checkRequirements() 

Check for the requirements to run ManiaControl

quit()

quit(string  $message = null, boolean  $errorPrefix = false) 

Stop ManiaControl immediately

Parameters

string $message
boolean $errorPrefix

restart()

restart() 

Restart ManiaControl immediately

isUnix()

isUnix() : boolean

Get whether ManiaControl is running on Unix

Returns

boolean

checkFunctionAvailability()

checkFunctionAvailability(string  $functionName) : boolean

Check whether the given function is available

Parameters

string $functionName

Returns

boolean

getDisabledFunctions()

getDisabledFunctions() : array

Get the array of disabled functions

Returns

array

restartUnix()

restartUnix() 

Perform restart on Unix

restartWindows()

restartWindows() 

Perform restart on Windows