protected function initSteps() { $this->addStep(new Gpf_Install_SelectLanguage()); $this->addStep(new Pap_Install_UpdateCheckRequirements()); $updateFiles = new Gpf_Install_UpdateApplicationFiles(); if ($updateFiles->isAvailable()) { $this->addStep($updateFiles); $this->addStep(new Gpf_Install_IntegrityCheck()); } $this->addStep(new Gpf_Install_UpdateApplication()); $this->addStep(new Gpf_Install_Finished()); }
protected function initScenario() { if(!Gpf_Application::getInstance()->isInstalled()) { $this->scenario = new Pap_Install_CleanInstallScenario(); return; } $updateFiles = new Gpf_Install_UpdateApplicationFiles(); if(!Gpf_Application::getInstance()->isUpdated() || $updateFiles->isAvailable()) { $this->scenario = new Pap_Install_UpdateScenario(); return; } $this->scenario = new Gpf_Install_DoneScenario(); }