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