summaryrefslogtreecommitdiff
path: root/apps/um/lib/Plugin.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/um/lib/Plugin.class.php')
-rw-r--r--apps/um/lib/Plugin.class.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/um/lib/Plugin.class.php b/apps/um/lib/Plugin.class.php
new file mode 100644
index 0000000..9d2fc2e
--- /dev/null
+++ b/apps/um/lib/Plugin.class.php
@@ -0,0 +1,25 @@
+<?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 function userConfig() { return array(); }
+ protected function addConfigGroup($arr, $group) {
+ if (!isset($arr[$group]))
+ $arr[$group] = array();
+ }
+
+ public abstract function init();
+
+ public function antispam_html() { return ''; }
+ public function antispam_verify() { return true; }
+}