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/MessageManager.class.php | |
parent | 103332a30f8976fcc224c8f55dc23aba7b99e578 (diff) |
start to add a plugin management framework
Diffstat (limited to 'src/lib/MessageManager.class.php')
-rw-r--r-- | src/lib/MessageManager.class.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/MessageManager.class.php b/src/lib/MessageManager.class.php index d9d9fbc..cfcdac7 100644 --- a/src/lib/MessageManager.class.php +++ b/src/lib/MessageManager.class.php @@ -6,6 +6,7 @@ class MessageManager { private $db_prefix; private $pw_hasher; private $template; + private $pluginManager; private $base; private $users = array(); @@ -386,6 +387,14 @@ class MessageManager { } return $this->template; } + + public function pluginManager() { + if (!isset($this->pluginManager)) { + require_once('PluginManager.class.php'); + $this->pluginManager = new PluginManager(); + } + return $this->pluginManager; + } public function login($username, $password) { $uid = $this->getUID($username); |