Constants

CB_MP_SERVERSTART

CB_MP_SERVERSTART

CB_MP_SERVERSTOP

CB_MP_SERVERSTOP

CB_MP_BEGINMATCH

CB_MP_BEGINMATCH

CB_MP_ENDMATCH

CB_MP_ENDMATCH

CB_MP_BEGINMAP

CB_MP_BEGINMAP

CB_MP_ENDMAP

CB_MP_ENDMAP

CB_MP_MAPLISTMODIFIED

CB_MP_MAPLISTMODIFIED

CB_MP_ECHO

CB_MP_ECHO

CB_MP_BILLUPDATED

CB_MP_BILLUPDATED

CB_MP_PLAYERCHAT

CB_MP_PLAYERCHAT

CB_MP_PLAYERCONNECT

CB_MP_PLAYERCONNECT

CB_MP_PLAYERDISCONNECT

CB_MP_PLAYERDISCONNECT

CB_MP_PLAYERMANIALINKPAGEANSWER

CB_MP_PLAYERMANIALINKPAGEANSWER

CB_MP_PLAYERINFOCHANGED

CB_MP_PLAYERINFOCHANGED

CB_MP_PLAYERALLIESCHANGED

CB_MP_PLAYERALLIESCHANGED

CB_MP_VOTEUPDATED

CB_MP_VOTEUPDATED

CB_MP_STATUSCHANGED

CB_MP_STATUSCHANGED

CB_MP_MODESCRIPTCALLBACK

CB_MP_MODESCRIPTCALLBACK

CB_MP_MODESCRIPTCALLBACKARRAY

CB_MP_MODESCRIPTCALLBACKARRAY

CB_MP_TUNNELDATARECEIVED

CB_MP_TUNNELDATARECEIVED

CB_TM_PLAYERCHECKPOINT

CB_TM_PLAYERCHECKPOINT

CB_TM_PLAYERFINISH

CB_TM_PLAYERFINISH

CB_TM_PLAYERINCOHERENCE

CB_TM_PLAYERINCOHERENCE

Properties

$libXmlRpcCallbacks

$libXmlRpcCallbacks : 

Type

$shootManiaCallbacks

$shootManiaCallbacks : 

Type

$trackManiaCallbacks

$trackManiaCallbacks : 

Type

$callbackListenings

$callbackListenings : array<mixed,\ManiaControl\Callbacks\Listening[]>

Type

array<mixed,\ManiaControl\Callbacks\Listening[]>

$scriptCallbackListenings

$scriptCallbackListenings : array<mixed,\ManiaControl\Callbacks\Listening[]>

Type

array<mixed,\ManiaControl\Callbacks\Listening[]>

Methods

getUsageInformation()

getUsageInformation() 

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

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Construct a new callbacks manager instance

Parameters

\ManiaControl\ManiaControl $maniaControl

registerCallbackListener()

registerCallbackListener(string  $callbackName, \ManiaControl\Callbacks\CallbackListener  $listener, string  $method) : boolean

Register a new Callback Listener

Parameters

string $callbackName
\ManiaControl\Callbacks\CallbackListener $listener
string $method

Returns

boolean

callbackListeningExists()

callbackListeningExists(  $callbackName) : boolean

Checks if a Callback Listening exists

Parameters

$callbackName

Returns

boolean

registerScriptCallbackListener()

registerScriptCallbackListener(string  $callbackName, \ManiaControl\Callbacks\CallbackListener  $listener, string  $method) : boolean

Register a new Script Callback Listener

Parameters

string $callbackName
\ManiaControl\Callbacks\CallbackListener $listener
string $method

Returns

boolean

unregisterCallbackListener()

unregisterCallbackListener(\ManiaControl\Callbacks\CallbackListener  $listener) : boolean

Unregister a Callback Listener

Parameters

\ManiaControl\Callbacks\CallbackListener $listener

Returns

boolean

unregisterCallbackListening()

unregisterCallbackListening(String  $callbackName, \ManiaControl\Callbacks\CallbackListener  $listener) : boolean

Unregister a single Callback Listening from an Callback Listener

Parameters

String $callbackName
\ManiaControl\Callbacks\CallbackListener $listener

Returns

boolean

unregisterScriptCallbackListener()

unregisterScriptCallbackListener(\ManiaControl\Callbacks\CallbackListener  $listener) : boolean

Unregister a Script Callback Listener

Parameters

\ManiaControl\Callbacks\CallbackListener $listener

Returns

boolean

manageCallbacks()

manageCallbacks() 

Trigger internal Callbacks and manage Server Callbacks

triggerCallback()

triggerCallback(mixed  $callback) 

Trigger a specific Callback

Parameters

mixed $callback

triggerScriptCallback()

triggerScriptCallback(string  $callbackName) 

Trigger a specific Script Callback

Parameters

string $callbackName

removeCallbackListener()

removeCallbackListener(array<mixed,\ManiaControl\Callbacks\Listening>  $listeningsArray, \ManiaControl\Callbacks\CallbackListener  $listener) : boolean

Remove the Callback Listener from the given Listeners Array

Parameters

array<mixed,\ManiaControl\Callbacks\Listening> $listeningsArray
\ManiaControl\Callbacks\CallbackListener $listener

Returns

boolean

handleCallback()

handleCallback(array  $callback) 

Handle the given Callback

Parameters

array $callback

handleScriptCallback()

handleScriptCallback(array  $callback) 

Handle the given Script Callback

Parameters

array $callback