]> git.wh0rd.org - tt-rss.git/blobdiff - classes/plugin.php
minor style tweaks for whiteBox and headlines-spacer
[tt-rss.git] / classes / plugin.php
index e655a2062ef998726ef148a3ed25fbac999f536a..8fbacf363a82d65de5da8da8be0c73e344a578f9 100644 (file)
@@ -1,10 +1,12 @@
 <?php
 class Plugin {
-       private $link;
+       private $dbh;
        private $host;
 
+       const API_VERSION_COMPAT = 1;
+
        function init($host) {
-               $this->link = $host->get_link();
+               $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;
+       }
 }
 ?>