From 855ac29630a23d44df66213c872c808e70bedd96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Fri, 25 Jul 2014 16:39:07 +0200 Subject: [PATCH] removed deprecated constants --- application/core/Callbacks/CallbackManager.php | 15 ++++----------- application/core/Maps/MapManager.php | 5 ----- application/core/Settings/SettingManager.php | 4 ++-- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/application/core/Callbacks/CallbackManager.php b/application/core/Callbacks/CallbackManager.php index 54baa1ca..4fb706ac 100644 --- a/application/core/Callbacks/CallbackManager.php +++ b/application/core/Callbacks/CallbackManager.php @@ -16,14 +16,6 @@ class CallbackManager { /* * Constants */ - // ManiaControl callbacks - /** @deprecated Use Callbacks Interface */ - const CB_ONINIT = 'Callbacks.OnInit'; - /** @deprecated Use Callbacks Interface */ - const CB_AFTERINIT = 'Callbacks.AfterInit'; - /** @deprecated Use Callbacks Interface */ - const CB_ONSHUTDOWN = 'Callbacks.OnShutdown'; - // ManiaPlanet callbacks const CB_MP_SERVERSTART = 'ManiaPlanet.ServerStart'; const CB_MP_SERVERSTOP = 'ManiaPlanet.ServerStop'; @@ -52,15 +44,16 @@ class CallbackManager { const CB_TM_PLAYERINCOHERENCE = 'TrackMania.PlayerIncoherence'; /* - * Public Properties + * Public properties */ public $libXmlRpcCallbacks = null; public $shootManiaCallbacks = null; public $trackManiaCallbacks = null; /* - * Private Properties + * Private properties */ + /** @var ManiaControl $maniaControl */ private $maniaControl = null; /** @var Listening[][] $callbackListenings */ private $callbackListenings = array(); @@ -68,7 +61,7 @@ class CallbackManager { private $scriptCallbackListenings = array(); /** - * Construct a new Callbacks Manager + * Construct a new callbacks manager instance * * @param ManiaControl $maniaControl */ diff --git a/application/core/Maps/MapManager.php b/application/core/Maps/MapManager.php index d1e021b1..73334fc6 100644 --- a/application/core/Maps/MapManager.php +++ b/application/core/Maps/MapManager.php @@ -46,11 +46,6 @@ class MapManager implements CallbackListener { const SETTING_AUTOSAVE_MAPLIST = 'Autosave Maplist file'; const SETTING_MAPLIST_FILE = 'File to write Maplist in'; - /** @deprecated Use Callbacks Interface */ - const CB_BEGINMAP = 'Callbacks.BeginMap'; - /** @deprecated Use Callbacks Interface */ - const CB_ENDMAP = 'Callbacks.EndMap'; - /* * Public properties */ diff --git a/application/core/Settings/SettingManager.php b/application/core/Settings/SettingManager.php index 0eb1fa41..4e1283bd 100644 --- a/application/core/Settings/SettingManager.php +++ b/application/core/Settings/SettingManager.php @@ -21,13 +21,13 @@ class SettingManager implements CallbackListener { */ const TABLE_SETTINGS = 'mc_settings'; const CB_SETTING_CHANGED = 'SettingManager.SettingChanged'; - /** @deprecated Use CB_SETTING_CHANGED */ - const CB_SETTINGS_CHANGED = 'SettingManager.SettingChanged'; /* * Private properties */ + /** @var ManiaControl $maniaControl */ private $maniaControl = null; + /** @var Setting[] $storedSettings */ private $storedSettings = array(); /**