/** * Generates the surrounding layout and embeds the installer-output * * @return string */ private function renderOutput() { class_core_eventdispatcher::getInstance()->notifyGenericListeners(class_system_eventidentifier::EVENT_SYSTEM_REQUEST_ENDPROCESSING, array()); if ($this->strLogfile != "") { $strTemplateID = $this->objTemplates->readTemplate(class_resourceloader::getInstance()->getCorePathForModule("module_installer") . "/module_installer/installer.tpl", "installer_log", true); $this->strLogfile = $this->objTemplates->fillTemplate(array("log_content" => $this->strLogfile, "systemlog" => $this->getLang("installer_systemlog")), $strTemplateID); } //build the progress-entries $strCurrentCommand = isset($_GET["step"]) ? $_GET["step"] : ""; if ($strCurrentCommand == "") { $strCurrentCommand = "phpsettings"; } $arrProgressEntries = array("phpsettings" => $this->getLang("installer_step_phpsettings"), "config" => $this->getLang("installer_step_dbsettings"), "loginData" => $this->getLang("installer_step_adminsettings"), "modeSelect" => $this->getLang("installer_step_modeselect"), "install" => $this->getLang("installer_step_modules"), "samplecontent" => $this->getLang("installer_step_samplecontent"), "finish" => $this->getLang("installer_step_finish")); $strProgress = ""; $strTemplateEntryTodoID = $this->objTemplates->readTemplate(class_resourceloader::getInstance()->getCorePathForModule("module_installer") . "/module_installer/installer.tpl", "installer_progress_entry", true); $strTemplateEntryCurrentID = $this->objTemplates->readTemplate(class_resourceloader::getInstance()->getCorePathForModule("module_installer") . "/module_installer/installer.tpl", "installer_progress_entry_current", true); $strTemplateEntryDoneID = $this->objTemplates->readTemplate(class_resourceloader::getInstance()->getCorePathForModule("module_installer") . "/module_installer/installer.tpl", "installer_progress_entry_done", true); $strTemplateEntryID = $strTemplateEntryDoneID; foreach ($arrProgressEntries as $strKey => $strValue) { $arrTemplateEntry = array(); $arrTemplateEntry["entry_name"] = $strValue; //choose the correct template section if ($strCurrentCommand == $strKey) { $strProgress .= $this->objTemplates->fillTemplate($arrTemplateEntry, $strTemplateEntryCurrentID, true); $strTemplateEntryID = $strTemplateEntryTodoID; } else { $strProgress .= $this->objTemplates->fillTemplate($arrTemplateEntry, $strTemplateEntryID, true); } } $arrTemplate = array(); $arrTemplate["installer_progress"] = $strProgress; $arrTemplate["installer_version"] = $this->strVersion; $arrTemplate["installer_output"] = $this->strOutput; $arrTemplate["installer_forward"] = $this->strForwardLink; $arrTemplate["installer_backward"] = $this->strBackwardLink; $arrTemplate["installer_logfile"] = $this->strLogfile; $strTemplateID = $this->objTemplates->readTemplate(class_resourceloader::getInstance()->getCorePathForModule("module_installer") . "/module_installer/installer.tpl", "installer_main", true); $strReturn = $this->objTemplates->fillTemplate($arrTemplate, $strTemplateID); $strReturn = $this->callScriptlets($strReturn); $this->objTemplates->setTemplate($strReturn); $this->objTemplates->deletePlaceholder(); $strReturn = $this->objTemplates->getTemplate(); return $strReturn; }