\ManiaControl\PluginsInstallMenu

Configurator for installing Plugins

Summary

Methods
Properties
Constants
__construct()
getTitle()
getMenu()
saveConfigData()
handleRefreshListAction()
No public properties found
SETTING_PERMISSION_INSTALL_PLUGINS
ACTION_PREFIX_INSTALL_PLUGIN
ACTION_REFRESH_LIST
No protected methods found
No protected properties found
N/A
getErrorFrame()
getEmptyFrame()
isPluginCompatible()
$maniaControl
N/A

Constants

SETTING_PERMISSION_INSTALL_PLUGINS

SETTING_PERMISSION_INSTALL_PLUGINS

ACTION_PREFIX_INSTALL_PLUGIN

ACTION_PREFIX_INSTALL_PLUGIN

ACTION_REFRESH_LIST

ACTION_REFRESH_LIST

Properties

Methods

__construct()

__construct(\ManiaControl\ManiaControl  $maniaControl) 

Create a new plugin install menu instance

Parameters

\ManiaControl\ManiaControl $maniaControl

getTitle()

getTitle() : string

Get the menu title

Returns

string

saveConfigData()

saveConfigData(array  $configData, \ManiaControl\Players\Player  $player) 

Save the config data

Parameters

array $configData
\ManiaControl\Players\Player $player

handleRefreshListAction()

handleRefreshListAction(array  $actionCallback, \ManiaControl\Players\Player  $player) 

Handle the Refresh MLAction

Parameters

array $actionCallback
\ManiaControl\Players\Player $player

getErrorFrame()

getErrorFrame() : \FML\Controls\Frame

Build the Frame to display when an Error occurred

Returns

\FML\Controls\Frame

getEmptyFrame()

getEmptyFrame() : \FML\Controls\Frame

Build the Frame to display when no Plugins are left to install

Returns

\FML\Controls\Frame

isPluginCompatible()

isPluginCompatible(object  $plugin) : boolean

Check if the given Plugin can be installed without Issues

Parameters

object $plugin

Returns

boolean