\ManiaControl\UpdatePluginUpdateManager

Manager checking for ManiaControl Plugin Updates

Summary

Methods
Properties
Constants
__construct()
handle_CheckPluginsUpdate()
checkPluginsUpdate()
parsePluginsData()
handle_PluginsUpdate()
performPluginsUpdate()
getPluginsUpdates()
handleManialinkPageAnswer()
getPluginUpdate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
installPlugin()
$maniaControl
N/A

Properties

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Create a new plugin update manager instance

Parameters

\ManiaControl\ManiaControl $maniaControl

handle_CheckPluginsUpdate()

handle_CheckPluginsUpdate(array  $chatCallback, \ManiaControl\Players\Player  $player) 

Handle //checkpluginsupdate command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

checkPluginsUpdate()

checkPluginsUpdate(\ManiaControl\Players\Player  $player = null) 

Check if there are Outdated Plugins installed

Parameters

\ManiaControl\Players\Player $player

parsePluginsData()

parsePluginsData(mixed  $webServiceResult) : mixed

Get an Array of Plugin Update Data from the given Web Service Result

Parameters

mixed $webServiceResult

Returns

mixed

handle_PluginsUpdate()

handle_PluginsUpdate(array  $chatCallback, \ManiaControl\Players\Player  $player) 

Handle //pluginsupdate command

Parameters

array $chatCallback
\ManiaControl\Players\Player $player

performPluginsUpdate()

performPluginsUpdate(\ManiaControl\Players\Player  $player = null) 

Perform an Update of all outdated Plugins

Parameters

\ManiaControl\Players\Player $player

getPluginsUpdates()

getPluginsUpdates() : mixed

Check for Plugin Updates

Returns

mixed

handleManialinkPageAnswer()

handleManialinkPageAnswer(array  $callback) 

Handle PlayerManialinkPageAnswer callback

Parameters

array $callback

getPluginUpdate()

getPluginUpdate(string  $pluginClass) : mixed

Check given Plugin Class for Update

Parameters

string $pluginClass

Returns

mixed