]> git.wh0rd.org - tt-rss.git/blame - classes/plugin.php
ci: fix typo
[tt-rss.git] / classes / plugin.php
CommitLineData
5a0e0392
AD
1<?php
2class Plugin {
6322ac79 3 private $dbh;
5a0e0392
AD
4 private $host;
5
ddf28801
AD
6 const API_VERSION_COMPAT = 1;
7
d2a421e3 8 function init($host) {
6322ac79 9 $this->dbh = $host->get_dbh();
5a0e0392
AD
10 $this->host = $host;
11 }
d2a421e3
AD
12
13 function about() {
14 // version, name, description, author, is_system
15 return array(1.0, "plugin", "No description", "No author", false);
16 }
17
41245888
AD
18 function flags() {
19 /* associative array, possible keys:
20 needs_curl = boolean
21 */
22 return array();
23 }
24
7b55001e
AD
25 /**
26 * @SuppressWarnings(PHPMD.UnusedFormalParameter)
27 */
4daaf234
AD
28 function is_public_method($method) {
29 return false;
30 }
31
d2a421e3
AD
32 function get_js() {
33 return "";
34 }
35
36 function get_prefs_js() {
37 return "";
38 }
ddf28801
AD
39
40 function api_version() {
41 return Plugin::API_VERSION_COMPAT;
42 }
5a0e0392
AD
43}
44?>