/** * Deletes a folder from Database. All subpages & subfolders turn up to top-level * * @throws class_exception * @return string, "" in case of success */ protected function actionDeleteFolderFinal() { $strReturn = ""; $objFolder = new class_module_pages_folder($this->getSystemid()); if ($objFolder->rightDelete($this->getSystemid())) { $strPrevID = $objFolder->getPrevId(); if ($objFolder->deleteObject()) { $this->adminReload(class_link::getLinkAdminHref($this->getArrModule("modul"), "list", "&systemid=" . $strPrevID)); } else { throw new class_exception($this->getLang("ordner_loeschen_fehler"), class_exception::$level_ERROR); } } else { $strReturn .= $this->getLang("commons_error_permissions"); } return $strReturn; }