protected function getOutputNaviEntry(interface_model $objInstance)
 {
     if ($objInstance instanceof class_module_eventmanager_event) {
         return getLinkAdmin($this->getArrModule("modul"), "listParticipant", "&systemid=" . $objInstance->getSystemid(), $objInstance->getStrDisplayName());
     }
     if ($objInstance instanceof class_module_eventmanager_participant) {
         return getLinkAdmin($this->getArrModule("modul"), "listParticipant", "&systemid=" . $objInstance->getStrPrevId(), $objInstance->getStrDisplayName());
     }
     return "";
 }
 protected function getOutputNaviEntry(interface_model $objInstance)
 {
     if ($objInstance instanceof class_module_votings_answer) {
         return $objInstance->getStrDisplayName();
     } else {
         if ($objInstance instanceof class_module_votings_voting) {
             return getLinkAdmin($this->getArrModule("modul"), "listAnswers", "&systemid=" . $objInstance->getSystemid(), $objInstance->getStrDisplayName());
         }
     }
     return parent::getOutputNaviEntry($objInstance);
 }
 /**
  * @param interface_model|class_model $objListEntry
  *
  * @return string
  */
 protected function renderDeleteAction(interface_model $objListEntry)
 {
     if ($objListEntry instanceof class_module_tags_favorite) {
         if ($objListEntry->rightDelete()) {
             return $this->objToolkit->listDeleteButton($objListEntry->getStrDisplayName(), $this->getLang("delete_question_fav", $objListEntry->getArrModule("modul")), class_link::getLinkAdminHref($objListEntry->getArrModule("modul"), "delete", "&systemid=" . $objListEntry->getSystemid()));
         }
     } else {
         return parent::renderDeleteAction($objListEntry);
     }
     return "";
 }
 /**
  * Renders the delete action button for the current record.
  * @param \class_model|\interface_model $objListEntry
  * @return string
  */
 protected function renderDeleteAction(interface_model $objListEntry)
 {
     if ($objListEntry->getIntRecordDeleted() == 1) {
         return "";
     }
     if ($objListEntry->rightDelete()) {
         $objLockmanager = $objListEntry->getLockManager();
         if (!$objLockmanager->isAccessibleForCurrentUser()) {
             return $this->objToolkit->listButton(class_adminskin_helper::getAdminImage("icon_deleteLocked", $this->getLang("commons_locked")));
         }
         return $this->objToolkit->listDeleteButton(strip_tags($objListEntry->getStrDisplayName()), $this->getLang($this->getObjLang()->stringToPlaceholder($this->getActionNameForClass("delete", $objListEntry) . "_question"), $objListEntry->getArrModule("modul")), class_link::getLinkAdminHref($objListEntry->getArrModule("modul"), $this->getActionNameForClass("delete", $objListEntry), "&systemid=" . $objListEntry->getSystemid() . $this->strPeAddon));
     }
     return "";
 }
 /**
  * @param interface_model|class_root $objListEntry
  *
  * @return string
  */
 protected function renderDeleteAction(interface_model $objListEntry)
 {
     if ($objListEntry->rightDelete() && $this->getObjModule()->rightDelete()) {
         if (class_module_system_setting::getConfigValue("_packagemanager_defaulttemplate_") == $objListEntry->getStrName()) {
             return $this->objToolkit->listButton(class_adminskin_helper::getAdminImage("icon_deleteDisabled", $this->getLang("pack_active_no_delete")));
         } else {
             return $this->objToolkit->listDeleteButton($objListEntry->getStrDisplayName(), $this->getLang("delete_question"), class_link::getLinkAdminHref($this->getArrModule("modul"), "deleteTemplate", "&systemid=" . $objListEntry->getSystemid() . ""));
         }
     }
     return "";
 }
 /**
  * @param interface_model $objListEntry
  *
  * @return string
  */
 protected function renderDeleteAction(interface_model $objListEntry)
 {
     if ($objListEntry instanceof class_module_user_user && $objListEntry->rightDelete()) {
         if ($objListEntry->getSystemid() == class_carrier::getInstance()->getObjSession()->getUserID()) {
             return $this->objToolkit->listButton(class_adminskin_helper::getAdminImage("icon_deleteDisabled", $this->getLang("user_loeschen_x")));
         } else {
             return $this->objToolkit->listDeleteButton($objListEntry->getStrDisplayName(), $this->getLang("user_loeschen_frage"), class_link::getLinkAdminHref($this->getArrModule("modul"), "deleteUser", "&systemid=" . $objListEntry->getSystemid()));
         }
     }
     if ($objListEntry instanceof class_module_user_group) {
         if ($objListEntry->getSystemid() != class_module_system_setting::getConfigValue("_guests_group_id_") && $objListEntry->getSystemid() != class_module_system_setting::getConfigValue("_admins_group_id_") && $this->isGroupEditable($objListEntry)) {
             if ($objListEntry->rightDelete()) {
                 return $this->objToolkit->listDeleteButton($objListEntry->getStrDisplayName(), $this->getLang("gruppe_loeschen_frage"), class_link::getLinkAdminHref($this->getArrModule("modul"), "groupDelete", "&systemid=" . $objListEntry->getSystemid()));
             }
         } else {
             return $this->objToolkit->listButton(class_adminskin_helper::getAdminImage("icon_deleteDisabled", $this->getLang("gruppe_loeschen_x")));
         }
     }
     return "";
 }
 protected function getOutputNaviEntry(interface_model $objInstance)
 {
     return class_link::getLinkAdmin($this->getArrModule("modul"), "edit", "&systemid=" . $objInstance->getSystemid(), $objInstance->getStrDisplayName());
 }
 /**
  * @param interface_model|class_module_pages_page $objListEntry
  *
  * @return string
  */
 protected function renderDeleteAction(interface_model $objListEntry)
 {
     if ($this->getParam("pe") != "") {
         return "";
     }
     $objLockmanager = $objListEntry->getLockManager();
     if (!$objLockmanager->isAccessibleForCurrentUser()) {
         return $this->objToolkit->listButton(class_adminskin_helper::getAdminImage("icon_deleteLocked", $this->getLang("commons_locked")));
     } else {
         if ($objListEntry instanceof class_module_pages_page && $objListEntry->rightDelete()) {
             return $this->objToolkit->listDeleteButton($objListEntry->getStrDisplayName(), $this->getLang("seite_loeschen_frage"), class_link::getLinkAdminHref($this->getArrModule("modul"), "deletePageFinal", "&systemid=" . $objListEntry->getSystemid()));
         } else {
             if ($objListEntry instanceof class_module_pages_folder && $objListEntry->rightDelete()) {
                 return $this->objToolkit->listDeleteButton($objListEntry->getStrDisplayName(), $this->getLang("pages_ordner_loeschen_frage"), class_link::getLinkAdminHref($this->getArrModule("modul"), "deleteFolderFinal", "&systemid=" . $objListEntry->getSystemid()));
             } else {
                 if ($objListEntry instanceof class_module_pages_element && $objListEntry->rightDelete()) {
                     return $this->objToolkit->listDeleteButton($objListEntry->getStrDisplayName(), $this->getLang("element_loeschen_frage"), class_link::getLinkAdminHref($this->getArrModule("modul"), "deleteElement", "&elementid=" . $objListEntry->getSystemid()));
                 } else {
                     return parent::renderDeleteAction($objListEntry);
                 }
             }
         }
     }
 }