CheckDependencies()) { return true; } else { return false; } } public function UpdateWizardStateAndGetNextStep($bMoveForward = true): WizardState { return new WizardState(WizStepSummary::class); } public function CanComeBack() { return false; } public function Display(WebPage $oPage) { $aInstallParams = $this->BuildConfig(); $this->AddProgressBar($oPage); $sJSONData = json_encode($aInstallParams); $oPage->add(''); $sAuthentToken = $this->oWizard->GetParameter('authent', ''); $oPage->add(''); $sApplicationUrl = $this->oWizard->GetParameter('application_url').'pages/exec.php?exec_module=combodo-data-feature-removal&exec_page=index.php'; $oPage->add(''); if (!$this->CheckDependencies()) { $oPage->error($this->sDependencyIssue); } $oPage->add_ready_script( <<add_ready_script( <<'); $('.ibo-setup--wizard--buttons-container tr td:nth-child(2)').after(''); $("#wiz_form").data("installation_status", "cleanup_needed"); $('#btn_next').hide(); EOF ); } } public function JSCanMoveForward() { return 'return ["completed", "cleanup_needed"].indexOf($("#wiz_form").data("installation_status")) !== -1;'; } public function JSCanMoveBackward() { return 'return ["not started", "error", "cleanup_needed"].indexOf($("#wiz_form").data("installation_status")) !== -1;'; } }