]>
Commit | Line | Data |
---|---|---|
5a0e0392 | 1 | <?php |
9e381bc2 | 2 | abstract class Plugin { |
ddf28801 AD |
3 | const API_VERSION_COMPAT = 1; |
4 | ||
7d960ce7 AD |
5 | /** @var PDO */ |
6 | protected $pdo; | |
7 | ||
69563c96 | 8 | /* @var PluginHost $host */ |
9e381bc2 | 9 | abstract function init($host); |
d2a421e3 | 10 | |
9e381bc2 AD |
11 | abstract function about(); |
12 | // return array(1.0, "plugin", "No description", "No author", false); | |
d2a421e3 | 13 | |
b6f3562d AD |
14 | function __construct() { |
15 | $this->pdo = Db::pdo(); | |
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 | } | |
ea79a0e0 | 43 | } |