]> 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 60f127633428021ebaf77fdf9847d32c698d2223..01ac46bae28bf0814eea624b5f9f47f807bde3fd 100644 (file)
@@ -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;
@@ -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;
+       }
 }
 ?>