From ddf28801e4720b9d7888b9bca5daf6be14d3720c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 Apr 2013 17:26:22 +0400 Subject: implement plugin API version compatibility check --- classes/plugin.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'classes/plugin.php') diff --git a/classes/plugin.php b/classes/plugin.php index 60f127633..8fbacf363 100644 --- a/classes/plugin.php +++ b/classes/plugin.php @@ -3,6 +3,8 @@ class Plugin { private $dbh; private $host; + const API_VERSION_COMPAT = 1; + function init($host) { $this->dbh = $host->get_dbh(); $this->host = $host; @@ -20,5 +22,9 @@ class Plugin { function get_prefs_js() { return ""; } + + function api_version() { + return Plugin::API_VERSION_COMPAT; + } } ?> -- cgit v1.2.3