/** * @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 ""; }
protected function renderDeleteAction(interface_model $objListEntry) { if ($objListEntry instanceof class_module_faqs_category && $objListEntry->rightDelete()) { return $this->objToolkit->listDeleteButton($objListEntry->getStrDisplayName(), $this->getLang("commons_delete_category_question"), class_link::getLinkAdminHref($objListEntry->getArrModule("modul"), "delete", "&systemid=" . $objListEntry->getSystemid())); } return parent::renderDeleteAction($objListEntry); }
/** * @param interface_model $objListEntry * * @return string */ protected function renderDeleteAction(interface_model $objListEntry) { if ($objListEntry instanceof class_module_mediamanager_repo) { 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($objListEntry->getStrDisplayName(), $this->getLang("delete_question_repo", $objListEntry->getArrModule("modul")), class_link::getLinkAdminHref($objListEntry->getArrModule("modul"), "delete", "&systemid=" . $objListEntry->getSystemid() . $this->getStrPeAddon())); } else { return ""; } } else { return parent::renderDeleteAction($objListEntry); } }
/** * Renders the unlock action button for the current record. * @param \class_model|\interface_model $objListEntry * @return string */ protected function renderUnlockAction(interface_model $objListEntry) { if ($objListEntry->getIntRecordDeleted() == 1) { return ""; } $objLockmanager = $objListEntry->getLockManager(); if (!$objLockmanager->isAccessibleForCurrentUser()) { if ($objLockmanager->isUnlockableForCurrentUser()) { return $this->objToolkit->listButton(class_link::getLinkAdmin($objListEntry->getArrModule("modul"), $this->getAction(), "&systemid=" . $this->getSystemid() . "&unlockid=" . $objListEntry->getSystemid(), "", $this->getLang("commons_unlock"), "icon_lockerOpen")); } } return ""; }
/** * @param class_model|interface_admin_listable|interface_model $objOneIterable * @param string $strListIdentifier * * @return string */ public function getActionIcons($objOneIterable, $strListIdentifier = "") { if ($strListIdentifier == "searchResultList") { //call the original module to render the action-icons $objAdminInstance = class_module_system_module::getModuleByName($objOneIterable->getArrModule("modul"))->getAdminInstanceOfConcreteModule(); if ($objAdminInstance != null && $objAdminInstance instanceof class_admin_simple) { return $objAdminInstance->getActionIcons($objOneIterable); } } return parent::getActionIcons($objOneIterable, $strListIdentifier); }