summaryrefslogtreecommitdiff
path: root/classes/plugin.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-05-23 21:16:30 +0300
committerAndrew Dolgov <[email protected]>2017-05-23 21:16:30 +0300
commit9e381bc2021dc427f62c463dac9cf7a82a66616f (patch)
tree1f58f3a00ce4c4bb4870bb7f6951d297cffe5653 /classes/plugin.php
parent7611f0c052976b7c2b804b41d1b9805311cc32bb (diff)
classes/Plugin: remove dbh & host fields; set init() and about() as abstract methods.
Diffstat (limited to 'classes/plugin.php')
-rw-r--r--classes/plugin.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/classes/plugin.php b/classes/plugin.php
index 5939d51c0..fcf329ca1 100644
--- a/classes/plugin.php
+++ b/classes/plugin.php
@@ -1,19 +1,11 @@
<?php
-class Plugin {
- private $dbh;
- private $host;
-
+abstract class Plugin {
const API_VERSION_COMPAT = 1;
- function init($host) {
- $this->dbh = $host->get_dbh();
- $this->host = $host;
- }
+ abstract function init($host);
- function about() {
- // version, name, description, author, is_system
- return array(1.0, "plugin", "No description", "No author", false);
- }
+ abstract function about();
+ // return array(1.0, "plugin", "No description", "No author", false);
function flags() {
/* associative array, possible keys: