Constants

ACTION_PREFIX_SETTING

ACTION_PREFIX_SETTING

CB_SCRIPTSETTING_CHANGED

CB_SCRIPTSETTING_CHANGED

CB_SCRIPTSETTINGS_CHANGED

CB_SCRIPTSETTINGS_CHANGED

TABLE_SCRIPT_SETTINGS

TABLE_SCRIPT_SETTINGS

SETTING_LOAD_DEFAULT_SETTINGS_MAP_BEGIN

SETTING_LOAD_DEFAULT_SETTINGS_MAP_BEGIN

SETTING_PERMISSION_CHANGE_SCRIPT_SETTINGS

SETTING_PERMISSION_CHANGE_SCRIPT_SETTINGS

Properties

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new script settings instance

Parameters

\ManiaControl\ManiaControl $maniaControl

getTitle()

getTitle() : string

Get the menu title

Returns

string

onInit()

onInit() 

Handle OnInit callback

loadSettingsFromDatabase()

loadSettingsFromDatabase() : boolean

Load Settings from Database

Returns

boolean

onBeginMap()

onBeginMap() 

Handle Begin Map Callback

saveConfigData()

saveConfigData(array  $configData, \ManiaControl\Players\Player  $player) 

Save the config data

Parameters

array $configData
\ManiaControl\Players\Player $player

initTables()

initTables() : boolean

Create all necessary database tables

Returns

boolean

applyNewScriptSettings()

applyNewScriptSettings(array  $newSettings, \ManiaControl\Players\Player  $player) : boolean

Apply the Array of new Script Settings

Parameters

array $newSettings
\ManiaControl\Players\Player $player

Returns

boolean

parseSettingValue()

parseSettingValue(mixed  $value) : string

Parse the Setting Value to a String Representation

Parameters

mixed $value

Returns

string

initalizeCommunicationListenings()

initalizeCommunicationListenings() 

Initializes the communication Listenings