From e22649e499994e3dbb9aba195420dc109ccac96f Mon Sep 17 00:00:00 2001 From: kremsy Date: Tue, 31 Dec 2013 17:31:05 +0100 Subject: [PATCH] added statisticmanager --- application/core/ManiaControl.php | 8 ++++++-- application/core/Statistics/StatisticManager.php | 11 +++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 application/core/Statistics/StatisticManager.php diff --git a/application/core/ManiaControl.php b/application/core/ManiaControl.php index 7612dc26..36b2ea7b 100644 --- a/application/core/ManiaControl.php +++ b/application/core/ManiaControl.php @@ -14,6 +14,7 @@ use ManiaControl\Players\Player; use ManiaControl\Players\PlayerManager; use ManiaControl\Plugins\PluginManager; use ManiaControl\Server\Server; +use StatisticManager; require_once __DIR__ . '/Callbacks/CallbackListener.php'; require_once __DIR__ . '/Commands/CommandListener.php'; @@ -32,6 +33,7 @@ require_once __DIR__ . '/GbxDataFetcher/gbxdatafetcher.inc.php'; require_once __DIR__ . '/ManiaExchange/mxinfofetcher.inc.php'; require_once __DIR__ . '/ManiaExchange/mxinfosearcher.inc.php'; require_once __DIR__ . '/Manialinks/ManialinkManager.php'; +require_once __DIR__ . '/Statistics/StatisticManager.php'; require_once __DIR__ . '/Maps/Map.php'; require_once __DIR__ . '/Maps/MapManager.php'; require_once __DIR__ . '/Maps/MapList.php'; @@ -85,8 +87,9 @@ class ManiaControl implements CommandListener { public $pluginManager = null; public $server = null; public $settingManager = null; + public $statisticManager = null; public $updateManager = null; - + /** * Private properties */ @@ -102,6 +105,7 @@ class ManiaControl implements CommandListener { $this->database = new Database($this); $this->callbackManager = new CallbackManager($this); $this->settingManager = new SettingManager($this); + $this->statisticManager = new StatisticManager($this); $this->manialinkManager = new ManialinkManager($this); $this->actionsMenu = new ActionsMenu($this); $this->chat = new Chat($this); @@ -113,7 +117,7 @@ class ManiaControl implements CommandListener { $this->configurator = new Configurator($this); $this->pluginManager = new PluginManager($this); $this->updateManager = new UpdateManager($this); - + // Register for commands $this->commandManager->registerCommandListener('version', $this, 'command_Version'); } diff --git a/application/core/Statistics/StatisticManager.php b/application/core/Statistics/StatisticManager.php new file mode 100644 index 00000000..d8567c67 --- /dev/null +++ b/application/core/Statistics/StatisticManager.php @@ -0,0 +1,11 @@ +