From 570901ba4e526be37afd0cbbe018cb0500a7cda1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 5 Sep 2011 01:22:27 -0400 Subject: Refactor a bit * move a lot of stuff out of MessageManager * move models from lib to models --- src/lib/MessageHandler.class.php | 49 ---------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 src/lib/MessageHandler.class.php (limited to 'src/lib/MessageHandler.class.php') diff --git a/src/lib/MessageHandler.class.php b/src/lib/MessageHandler.class.php deleted file mode 100644 index 1fa9faf..0000000 --- a/src/lib/MessageHandler.class.php +++ /dev/null @@ -1,49 +0,0 @@ - $type) { - $value = $m->getPluginConf($plugin, $param); - if ($value!==false) { - switch ($type) { - case 'text': - case 'password': - $value = "$value"; - break; - case 'int': - $value = (int)$value; - break; - } - $obj->configSet($param, $value); - } - } - return $obj; - } - public function main() { - global $BASE; - - $private_senders = array(); - $broadcast_senders = array(); - - $plugin_list = $m->getSysConf('plugins'); - $plugins = explode(',', $plugin_list); - foreach ($plugins as $plugin) { - require_once("$plugin.class.php"); - if (is_subclass_of($plugin, 'SenderPrivate')) { - $private_senders[] = $this->loadPlugin($plugin); - } - if (is_subclass_of($plugin, 'SenderBroadcast')) { - $broadcast_senders[] = $this->loadPlugin($plugin); - } - } - //foreach ($private_senders) - } -} \ No newline at end of file -- cgit v1.2.3-2-g168b