summaryrefslogtreecommitdiff
path: root/app/Core/Plugin/Base.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-01-08 17:02:31 -0500
committerFrederic Guillot <fred@kanboard.net>2017-01-08 17:02:31 -0500
commit07f9700179da74b056485375652c3b26d6fbce0d (patch)
tree027408d8895514daa33297d1fbfdda7f26f3dc1c /app/Core/Plugin/Base.php
parent17ac414d744155d77c729f150115e8fd9e18f285 (diff)
Offer the possibility to define version compatibility from plugins
Diffstat (limited to 'app/Core/Plugin/Base.php')
-rw-r--r--app/Core/Plugin/Base.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/Core/Plugin/Base.php b/app/Core/Plugin/Base.php
index 9d8167a9..e0b5954a 100644
--- a/app/Core/Plugin/Base.php
+++ b/app/Core/Plugin/Base.php
@@ -131,4 +131,17 @@ abstract class Base extends \Kanboard\Core\Base
{
return '';
}
+
+ /**
+ * Get application compatibility version
+ *
+ * Examples: >=1.0.36, 1.0.37, APP_VERSION
+ *
+ * @access public
+ * @return string
+ */
+ public function getCompatibleVersion()
+ {
+ return APP_VERSION;
+ }
}