]> git.wh0rd.org - tt-rss.git/blobdiff - classes/plugin.php
only stop inline feed updates with open_basedir enabled if there are any plugins...
[tt-rss.git] / classes / plugin.php
index e655a2062ef998726ef148a3ed25fbac999f536a..01ac46bae28bf0814eea624b5f9f47f807bde3fd 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;
        }
 
@@ -13,6 +15,13 @@ class Plugin {
                return array(1.0, "plugin", "No description", "No author", false);
        }
 
+       function flags() {
+               /* associative array, possible keys:
+                       needs_curl = boolean
+               */
+               return array();
+       }
+
        function get_js() {
                return "";
        }
@@ -20,5 +29,9 @@ class Plugin {
        function get_prefs_js() {
                return "";
        }
+
+       function api_version() {
+               return Plugin::API_VERSION_COMPAT;
+       }
 }
 ?>