public function showCommandManagement($ErrorString = "", $StatusString = "") { if (Controler_Main::getInstance()->getUserLevel() < BACKEND_USERLEVEL) { $ControlerStart = new Controler_Start(); $ControlerStart->start(); return false; } $Request = new Request(); $CommandFinder = new CommandFinder(); $CommandCollection = $CommandFinder->findAll(); $DeviceFinder = new DeviceFinder(); $DeviceCollection = $DeviceFinder->findAll(); $Template = Template::getInstance("tpl_BE_CommandManager.php"); $Template->assign("CommandCollection", $CommandCollection); $Template->assign("DeviceCollection", $DeviceCollection); $Template->assign("ErrorString", $ErrorString); $Template->assign("StatusString", $StatusString); $Template->render(); }
/** * Aktualisiert das Gerät * @param from Request all * @return true/false * */ public function showEditDevice($ErrorString = "", $StatusString = "") { if (Controler_Main::getInstance()->getUserLevel() < BACKEND_USERLEVEL) { $ControlerStart = new Controler_Start(); $ControlerStart->start(); return false; } $Request = new Request(); $this->Device = Device::getEmptyInstance(); $DeviceFinder = new DeviceFinder(); $ID = $Request->getAsInt("DeviceID"); $DeviceCollection = $DeviceFinder->findByID($ID); $Template = Template::getInstance("tpl_BE_DeviceManager.php"); $Template->assign("Device", $DeviceCollection); $Template->assign("HtmlSelector", "showEditDevice"); $Template->assign("ErrorString", $ErrorString); $Template->assign("StatusString", $StatusString); $Template->render(); }