]> git.wh0rd.org - tt-rss.git/blob - classes/plugin.php
fcf329ca10c2b356a8628d8ee42ae2e8785dc40d
[tt-rss.git] / classes / plugin.php
1 <?php
2 abstract class Plugin {
3 const API_VERSION_COMPAT = 1;
4
5 abstract function init($host);
6
7 abstract function about();
8 // return array(1.0, "plugin", "No description", "No author", false);
9
10 function flags() {
11 /* associative array, possible keys:
12 needs_curl = boolean
13 */
14 return array();
15 }
16
17 /**
18 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
19 */
20 function is_public_method($method) {
21 return false;
22 }
23
24 function get_js() {
25 return "";
26 }
27
28 function get_prefs_js() {
29 return "";
30 }
31
32 function api_version() {
33 return Plugin::API_VERSION_COMPAT;
34 }
35 }