/** * @param string $strListIdentifier * @param bool $bitDialog * * @return array|string */ protected function getNewEntryAction($strListIdentifier, $bitDialog = false) { if ($strListIdentifier != "searchResultList") { return parent::getNewEntryAction($strListIdentifier, $bitDialog); } }
protected function getNewEntryAction($strListIdentifier, $bitDialog = false) { if ($strListIdentifier == "naviPoints") { if ($this->getObjModule()->rightEdit()) { return $this->objToolkit->listButton(class_link::getLinkAdmin($this->getArrModule("modul"), "newNaviPoint", "&systemid=" . $this->getSystemid() . $this->strPeAddon, $this->getLang("modul_anlegenpunkt"), $this->getLang("modul_anlegenpunkt"), "icon_new")); } } else { if ($strListIdentifier == "browserList") { return ""; } else { return parent::getNewEntryAction($strListIdentifier); } } return ""; }
/** * @param string $strListIdentifier * @param bool $bitDialog * * @return array|string */ protected function getNewEntryAction($strListIdentifier, $bitDialog = false) { if ($strListIdentifier == "moduleList") { return ""; } if ($strListIdentifier == "aspectList" && $this->getObjModule()->rightEdit()) { return $this->objToolkit->listButton(getLinkAdmin($this->getArrModule("modul"), "newAspect", "", $this->getLang("aspect_create"), $this->getLang("aspect_create"), "icon_new")); } return parent::getNewEntryAction($strListIdentifier); }