Constants

DEFAULT_IMG_URL

DEFAULT_IMG_URL

PRELOAD_MLID

PRELOAD_MLID

MX_ICON

MX_ICON

MX_ICON_MOVER

MX_ICON_MOVER

MX_ICON_GREEN

MX_ICON_GREEN

MX_ICON_GREEN_MOVER

MX_ICON_GREEN_MOVER

Properties

$icons

$icons : 

Type

Methods

getUsageInformation()

getUsageInformation() 

Gets Information about the Class, and a List of the Public Method

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new icon manager instance

Parameters

\ManiaControl\ManiaControl $maniaControl

addIcon()

addIcon(string  $iconName, string  $iconLink = self::DEFAULT_IMG_URL) 

Add an Icon

Parameters

string $iconName
string $iconLink

addIconFullUrl()

addIconFullUrl(  $iconName,   $iconUrl) 

Adds an Icon by it's full URL

Parameters

$iconName
$iconUrl

getIcon()

getIcon(string  $iconName) : string

Get an Icon by its Name

Parameters

string $iconName

Returns

string

handleAfterInit()

handleAfterInit() 

Handle OnInit Callback

handlePlayerConnect()

handlePlayerConnect(\ManiaControl\Players\Player  $player) 

Handle PlayerConnect Callback

Parameters

\ManiaControl\Players\Player $player

addDefaultIcons()

addDefaultIcons() 

Add the set of default icons