summaryrefslogtreecommitdiff
path: root/src/lib/Plugin.class.php
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-04 20:42:32 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-04 20:42:32 -0400
commit716c3a5a3a36206e93431eb5f8df3471546ec4b2 (patch)
treefaccf06e355ce37f233f823a87b4a93d9f531cb2 /src/lib/Plugin.class.php
parent103332a30f8976fcc224c8f55dc23aba7b99e578 (diff)
start to add a plugin management framework
Diffstat (limited to 'src/lib/Plugin.class.php')
-rw-r--r--src/lib/Plugin.class.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/Plugin.class.php b/src/lib/Plugin.class.php
index f2251d2..8c7fad8 100644
--- a/src/lib/Plugin.class.php
+++ b/src/lib/Plugin.class.php
@@ -11,6 +11,12 @@ abstract class Plugin {
$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();
-} \ No newline at end of file
+}