summaryrefslogtreecommitdiff
path: root/src/lib/Plugin.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Plugin.class.php')
-rw-r--r--src/lib/Plugin.class.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/Plugin.class.php b/src/lib/Plugin.class.php
new file mode 100644
index 0000000..f2251d2
--- /dev/null
+++ b/src/lib/Plugin.class.php
@@ -0,0 +1,16 @@
+<?php
+
+abstract class Plugin {
+ protected $config = Array();
+
+ public abstract static function configList();
+ public abstract static function description();
+
+ public function configSet($param, $value) {
+ if (isset($this->config[$param])) {
+ $this->config[$param]=$value;
+ }
+ }
+
+ public abstract function init();
+} \ No newline at end of file