/**
  * Triggers the removal of a single package
  *
  * @permissions edit,delete
  * @throws class_exception
  * @return string
  */
 protected function actionDeletePackage()
 {
     $strReturn = "";
     //fetch the package
     $objManager = new class_module_packagemanager_manager();
     $objPackage = $objManager->getPackage($this->getParam("package"));
     if ($objPackage == null) {
         throw new class_exception("package not found", class_exception::$level_ERROR);
     }
     $strLog = $objManager->removePackage($objPackage);
     if ($strLog == "") {
         $this->adminReload(class_link::getLinkAdminHref($this->getArrModule("modul"), "list"));
         return "";
     }
     $strReturn .= $this->objToolkit->formHeadline($this->getLang("package_removal_header"));
     $strReturn .= $this->objToolkit->getPreformatted(array($strLog));
     $strReturn .= $this->objToolkit->formHeader(class_link::getLinkAdminHref($this->getArrModule("modul"), "list"), "", "");
     $strReturn .= $this->objToolkit->formInputSubmit($this->getLang("commons_ok"));
     $strReturn .= $this->objToolkit->formClose();
     return $strReturn;
 }