From a34f1c6fa7e62b08250442ff9cf3cad0b4a50f3a Mon Sep 17 00:00:00 2001 From: kremsy Date: Sun, 10 Nov 2013 10:05:02 +0100 Subject: [PATCH] improved testplugin --- application/plugins/testPlugin.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/application/plugins/testPlugin.php b/application/plugins/testPlugin.php index 7d52bcc4..28b98bc3 100644 --- a/application/plugins/testPlugin.php +++ b/application/plugins/testPlugin.php @@ -3,25 +3,33 @@ namespace ManiaControl; class TestPlugin extends Plugin { + const AUTHOR = 'steeffeen'; + const NAME = 'Test Plugin'; + const VERSION = '1.0'; + const DESCRIPTION = 'Test Plugin'; public function __construct(ManiaControl $maniaControl) { $this->maniaControl = $maniaControl; } + + + + //abstract Methods from ParentClass (do not change them!) public function getAuthor() { - return 'steeffeen'; + return SELF::AUTHOR; } public function getName() { - return 'Test Plugin'; + return SELF::NAME; } public function getVersion() { - return '1.0'; + return SELF::VERSION; } public function getDescription() { - return 'Dummy plugin for testing plugin handling'; + return SELF::DESCRIPTION; } }