/**
  * deleteAction
  * @author Thomas Schedler <*****@*****.**>
  * @version 1.0
  */
 public function deleteAction()
 {
     $this->core->logger->debug('global->controllers->ElementController->deleteAction()');
     try {
         $this->getModelGlobals();
         $blnGeneralDeleteAuthorization = Security::get()->isAllowed(Security::RESOURCE_ROOT_LEVEL_PREFIX . $this->objRequest->getParam("rootLevelId"), Security::PRIVILEGE_DELETE, false, false);
         $blnDeleteAuthorization = $blnGeneralDeleteAuthorization == true ? $blnGeneralDeleteAuthorization : Security::get()->isAllowed(Security::RESOURCE_ROOT_LEVEL_PREFIX . $this->objRequest->getParam("rootLevelId") . '_' . $this->objRequest->getParam("languageId"), Security::PRIVILEGE_DELETE, false, false);
         if ($blnDeleteAuthorization == true) {
             if ($this->objRequest->isPost() && $this->objRequest->isXmlHttpRequest()) {
                 if (intval($this->objRequest->getParam('linkId', -1)) > 0) {
                     $this->objModelGlobals->delete($this->objRequest->getParam("linkId"));
                 } else {
                     $this->objModelGlobals->delete($this->objRequest->getParam("id"));
                 }
                 $this->view->blnShowFormAlert = true;
             }
         }
         $this->renderScript('element/form.phtml');
     } catch (Exception $exc) {
         $this->core->logger->err($exc);
         exit;
     }
 }