summaryrefslogtreecommitdiff
path: root/app/Core/Plugin/Base.php
diff options
context:
space:
mode:
authorMax Kamashev <kamashev@gollard.ru>2015-09-30 09:19:33 +0300
committerMax Kamashev <kamashev@gollard.ru>2015-09-30 09:19:33 +0300
commitcabcdc9d9e58d279ac6a5992ae5202568ed4d24e (patch)
treeeebdc4ec16eb7dc2ed0edd953321fa3e02869f34 /app/Core/Plugin/Base.php
parent930406bf70e42413a83114b9530b3f63ccf9419f (diff)
parent421e8751ebca5b566ecbd8d08e9d56b93ce81ffa (diff)
Merge branch 'master' of https://github.com/fguillot/kanboard into 1245_bug_with_subtask_timer
Diffstat (limited to 'app/Core/Plugin/Base.php')
-rw-r--r--app/Core/Plugin/Base.php65
1 files changed, 65 insertions, 0 deletions
diff --git a/app/Core/Plugin/Base.php b/app/Core/Plugin/Base.php
index 580d41ad..a72a0cd6 100644
--- a/app/Core/Plugin/Base.php
+++ b/app/Core/Plugin/Base.php
@@ -44,4 +44,69 @@ abstract class Base extends \Core\Base
call_user_func($callback, $container);
});
}
+
+ /**
+ * Get plugin name
+ *
+ * This method should be overrided by your Plugin class
+ *
+ * @access public
+ * @return string
+ */
+ public function getPluginName()
+ {
+ return ucfirst(substr(get_called_class(), 7, -7));
+ }
+
+ /**
+ * Get plugin description
+ *
+ * This method should be overrided by your Plugin class
+ *
+ * @access public
+ * @return string
+ */
+ public function getPluginDescription()
+ {
+ return '';
+ }
+
+ /**
+ * Get plugin author
+ *
+ * This method should be overrided by your Plugin class
+ *
+ * @access public
+ * @return string
+ */
+ public function getPluginAuthor()
+ {
+ return '?';
+ }
+
+ /**
+ * Get plugin version
+ *
+ * This method should be overrided by your Plugin class
+ *
+ * @access public
+ * @return string
+ */
+ public function getPluginVersion()
+ {
+ return '?';
+ }
+
+ /**
+ * Get plugin homepage
+ *
+ * This method should be overrided by your Plugin class
+ *
+ * @access public
+ * @return string
+ */
+ public function getPluginHomepage()
+ {
+ return '';
+ }
}