function execute(&$controller, &$xoopsUser) { if (isset($_REQUEST['_form_control_cancel'])) { return LEGACY_FRAME_VIEW_CANCEL; } $this->mActionForm->fetch(); $this->mActionForm->validate(); if ($this->mActionForm->hasError()) { return $this->getDefaultView($controller, $xoopsUser); } $this->mInstaller->setForceMode($this->mActionForm->get('force')); $this->mInstaller->executeUninstall(); return LEGACY_FRAME_VIEW_SUCCESS; }
function execute(&$controller, &$xoopsUser) { if (isset($_REQUEST['_form_control_cancel'])) { return LEGACY_FRAME_VIEW_CANCEL; } $this->mActionForm->fetch(); $this->mActionForm->validate(); if ($this->mActionForm->hasError()) { return $this->getDefaultView($controller, $xoopsUser); } $this->mInstaller->setForceMode($this->mActionForm->get('force')); if (!$this->mInstaller->executeInstall()) { $this->mInstaller->mLog->addReport('Force Uninstallation is started.'); $dirname = $this->mXoopsModule->get('dirname'); $uninstaller =& Legacy_ModuleInstallUtils::createUninstaller($dirname); $uninstaller->setForceMode(true); $uninstaller->setCurrentXoopsModule($this->mXoopsModule); $uninstaller->executeUninstall(); } return LEGACY_FRAME_VIEW_SUCCESS; }