From 6cf521aef2825bebb87f239dfd3faa8542394467 Mon Sep 17 00:00:00 2001 From: Max Klaversma Date: Thu, 1 May 2014 01:58:57 +0200 Subject: [PATCH] Added PHPDoc for new HelpManager methods --- application/core/Commands/HelpManager.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/application/core/Commands/HelpManager.php b/application/core/Commands/HelpManager.php index ec3ca818..bc49d2d9 100644 --- a/application/core/Commands/HelpManager.php +++ b/application/core/Commands/HelpManager.php @@ -133,6 +133,12 @@ class HelpManager implements CommandListener, CallbackListener { $this->prepareHelpAll($this->adminCommands, $player); } + /** + * Prepares the commands for the HelpAll ManiaLink. + * + * @param $commands + * @param $player + */ private function prepareHelpAll($commands, $player) { $showCommands = array(); $registeredMethods = array(); @@ -158,6 +164,12 @@ class HelpManager implements CommandListener, CallbackListener { $this->showHelpAllList($showCommands, $player); } + /** + * Shows the HelpAll list to the player. + * + * @param $commands + * @param $player + */ private function showHelpAllList($commands, $player) { $width = $this->maniaControl->manialinkManager->styleManager->getListWidgetsWidth(); $height = $this->maniaControl->manialinkManager->styleManager->getListWidgetsHeight();