diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-09-04 20:42:32 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-09-04 20:42:32 -0400 |
commit | 716c3a5a3a36206e93431eb5f8df3471546ec4b2 (patch) | |
tree | faccf06e355ce37f233f823a87b4a93d9f531cb2 /src/lib/Plugin.class.php | |
parent | 103332a30f8976fcc224c8f55dc23aba7b99e578 (diff) |
start to add a plugin management framework
Diffstat (limited to 'src/lib/Plugin.class.php')
-rw-r--r-- | src/lib/Plugin.class.php | 8 |
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 +} |