\ManiaControl\StatisticsSimpleStatsList

Simple Stats List Class

Summary

Methods
Properties
Constants
__construct()
handleOnInit()
registerStat()
command_ShowStatsList()
showStatsList()
handleManialinkPageAnswer()
No public properties found
ACTION_OPEN_STATSLIST
ACTION_SORT_STATS
No protected methods found
No protected properties found
N/A
No private methods found
$maniaControl
$statArray
$statsWidth
N/A

Constants

ACTION_OPEN_STATSLIST

ACTION_OPEN_STATSLIST

ACTION_SORT_STATS

ACTION_SORT_STATS

Properties

$statArray

$statArray : 

Type

$statsWidth

$statsWidth : 

Type

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new simple stats list instance

Parameters

\ManiaControl\ManiaControl $maniaControl

handleOnInit()

handleOnInit() 

Add the menu entry

registerStat()

registerStat(string  $statName, integer  $order, string  $headShortCut, integer  $width = 10, string  $format = \ManiaControl\Statistics\StatisticManager::STAT_TYPE_INT) 

Register a Certain Stat

Parameters

string $statName
integer $order
string $headShortCut
integer $width
string $format

command_ShowStatsList()

command_ShowStatsList(array  $callback, \ManiaControl\Players\Player  $player) 

Show the stat List

Parameters

array $callback
\ManiaControl\Players\Player $player

showStatsList()

showStatsList(\ManiaControl\Players\Player  $player, string  $order = \ManiaControl\Players\PlayerManager::STAT_SERVERTIME) 

Show the StatsList Widget to the Player

Parameters

\ManiaControl\Players\Player $player
string $order

handleManialinkPageAnswer()

handleManialinkPageAnswer(array  $callback) 

Called on ManialinkPageAnswer

Parameters

array $callback