/** * Main control to handle the flow of upgrade * * @author KnowledgeTree Team * @param none * @access public * @return void */ public function step() { $this->loadNeeded(); switch ($this->response) { case 'next': $step_name = $this->_getStepName(); $res = $this->_runStepAction($step_name); if ($res == 'next') { $this->_proceed(); // Load next window } elseif ($res == 'upgrade') { $this->_runStepsUpgraders(); // Load landing $this->_proceed(); // Load next window } elseif ($res == 'confirm') { if (!$this->stepDisplayFirst()) { $this->stepConfirmation = true; } $this->_landing(); } elseif ($res == 'landing') { $this->_landing(); } else { } break; case 'previous': $this->_backward(); // Load previous page break; case 'install': $util = new UpgradeUtil(); $util->redirect('../wizard/index.php?step_name=installtype'); break; default: // TODO : handle silent $this->_landing(); break; } $this->stepAction->paintAction(); // Display step }