Constants

ID

ID

VERSION

VERSION

NAME

NAME

AUTHOR

AUTHOR

MLID_RECORDS

MLID_RECORDS

TABLE_RECORDS

TABLE_RECORDS

SETTING_WIDGET_TITLE

SETTING_WIDGET_TITLE

SETTING_WIDGET_POSX

SETTING_WIDGET_POSX

SETTING_WIDGET_POSY

SETTING_WIDGET_POSY

SETTING_WIDGET_WIDTH

SETTING_WIDGET_WIDTH

SETTING_WIDGET_LINESCOUNT

SETTING_WIDGET_LINESCOUNT

SETTING_WIDGET_LINEHEIGHT

SETTING_WIDGET_LINEHEIGHT

SETTING_WIDGET_ENABLE

SETTING_WIDGET_ENABLE

SETTING_NOTIFY_ONLY_DRIVER

SETTING_NOTIFY_ONLY_DRIVER

SETTING_NOTIFY_BEST_RECORDS

SETTING_NOTIFY_BEST_RECORDS

SETTING_ADJUST_OUTER_BORDER

SETTING_ADJUST_OUTER_BORDER

CB_LOCALRECORDS_CHANGED

CB_LOCALRECORDS_CHANGED

ACTION_SHOW_RECORDSLIST

ACTION_SHOW_RECORDSLIST

Properties

$updateManialink

$updateManialink : 

Type

$checkpoints

$checkpoints : 

Type

Methods

prepare()

prepare(\ManiaControl\ManiaControl  $maniaControl) 

Prepare the Plugin

Parameters

\ManiaControl\ManiaControl $maniaControl

getId()

getId() : integer

Get plugin id

Returns

integer

getName()

getName() : string

Get Plugin Name

Returns

string

getVersion()

getVersion() : string

Get Plugin Version

Returns

string

getAuthor()

getAuthor() : string

Get Plugin Author

Returns

string

getDescription()

getDescription() : string

Get Plugin Description

Returns

string

load()

load(\ManiaControl\ManiaControl  $maniaControl) : boolean

Load the plugin

Parameters

\ManiaControl\ManiaControl $maniaControl

Returns

boolean

unload()

unload() 

Unload the plugin and its Resources

handleAfterInit()

handleAfterInit() 

Handle ManiaControl After Init

handle1Second()

handle1Second() 

Handle 1 Second Callback

getLocalRecords()

getLocalRecords(\ManiaControl\Maps\Map  $map, integer  $limit = -1) : array

Fetch local records for the given map

Parameters

\ManiaControl\Maps\Map $map
integer $limit

Returns

array

handleSettingChanged()

handleSettingChanged(\ManiaControl\Settings\Setting  $setting) 

Handle Setting Changed Callback

Parameters

\ManiaControl\Settings\Setting $setting

handlePlayerConnect()

handlePlayerConnect() 

Handle Player Connect Callback

handleMapBegin()

handleMapBegin() 

Handle Begin Map Callback

handleManialinkPageAnswer()

handleManialinkPageAnswer(array  $callback) 

Handle PlayerManialinkPageAnswer callback

Parameters

array $callback

showRecordsList()

showRecordsList(array  $chat, \ManiaControl\Players\Player  $player) 

Shows a ManiaLink list with the local records.

Parameters

array $chat
\ManiaControl\Players\Player $player

deleteRecord()

deleteRecord(array  $chat, \ManiaControl\Players\Player  $player) 

Delete a Player's record

Parameters

array $chat
\ManiaControl\Players\Player $player

initTables()

initTables() 

Initialize needed database tables

buildManialink()

buildManialink() : string

Build the local records manialink

Returns

string

getCheckpoints()

getCheckpoints(string  $login) : string

Get current checkpoint string for dedimania record

Parameters

string $login

Returns

string

getLocalRecord()

getLocalRecord(\ManiaControl\Maps\Map  $map, \ManiaControl\Players\Player  $player) : mixed

Retrieve the local record for the given map and login

Parameters

\ManiaControl\Maps\Map $map
\ManiaControl\Players\Player $player

Returns

mixed