handleCommand($command); } else if ($module == 'queue') { $queueContent = new QueueContent(); $queueContent->handleCommand($command); } else if ($module == 'products') { $products = new Products(); $products->handleCommand($command); } else if ($module == 'roomtables') { $roomtables = new Roomtables(); $roomtables->handleCommand($command); } else if ($module == 'reports') { $reports = new Reports(); $reports->handleCommand($command); } else if ($module == 'bill') { $reports = new Bill(); $reports->handleCommand($command); } else if ($module == 'closing') { $closingModule = new Closing(); $closingModule->handleCommand($command); } else if ($module == 'printqueue') { $printQueue = new PrintQueue(); $printQueue->handleCommand($command); } else if ($module == 'feedback') { $feedback = new Feedback(); $feedback->handleCommand($command); } else if ($module == 'reservation') { $reservation = new Reservation(); $reservation->handleCommand($command); } else if ($module == 'rating') { $rating = new Rating(); $rating->handleCommand($command); } else if ($module == 'customers') { $rating = new Customers(); $rating->handleCommand($command); } else if ($module == 'updater') { $updater = new Updater(); $updater->handleCommand($command); } else if ($module == 'guestsync') { Guestsync::handleCommand($command); } else if ($module == 'timetracking') { Timetracking::handleCommand($command); } else if ($module == 'tasks') { Tasks::handleCommand($command); } else if ($module == 'pickup') { Pickup::handleCommand($command); } else if ($module == 'demodata') { Demodata::handleCommand($command); } else if ($module == 'tse') { Tse::handleCommand($command); } else if ($module == 'vouchers') { Vouchermanager::handleCommand($command); } function havePlugins() { if (file_exists("../plugins")) { if (file_exists("../plugins/config.json")) { $content = file_get_contents("../plugins/config.json"); $pluginconfig = json_decode($content); $props = get_object_vars($pluginconfig); $keys = array_keys($props); foreach ($keys as $aKey) { $aPluginConfig = $pluginconfig->$aKey; $className = $aPluginConfig->PluginClass; require_once "../plugins/$className.php"; } CommonUtils::setPluginConfig($pluginconfig); return $pluginconfig; } } return null; }