/** * Wrapper to delete a template-pack * * @return void */ protected function actionDeleteTemplate() { parent::actionDelete(); $this->adminReload(class_link::getLinkAdminHref($this->getArrModule("modul"), "listTemplates")); }
/** * Helper to generate a small path-navigation * * @return array */ protected function getArrOutputNaviEntries() { $arrEntries = parent::getArrOutputNaviEntries(); $arrPath = $this->getPathArray(); foreach ($arrPath as $strOneSystemid) { $objPoint = new class_module_navigation_point($strOneSystemid); $arrEntries[] = class_link::getLinkAdmin("navigation", "list", "&systemid=" . $strOneSystemid, $objPoint->getStrName(), $objPoint->getStrName()); } return $arrEntries; }
/** * @param class_model $objListEntry * @param bool $bitDialog * * @return string */ protected function renderEditAction(class_model $objListEntry, $bitDialog = false) { 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->rightEdit()) { return $this->objToolkit->listButton(class_link::getLinkAdminDialog("user", "groupEdit", "&systemid=" . $objListEntry->getSystemid(), "", $this->getLang("action_group_edit"), "icon_edit")); } } else { return $this->objToolkit->listButton(class_adminskin_helper::getAdminImage("icon_editDisabled", $this->getLang("gruppe_bearbeiten_x"))); } } return parent::renderEditAction($objListEntry); }
/** * @param string $strListIdentifier * @param bool $bitDialog * * @return array|string */ protected function getNewEntryAction($strListIdentifier, $bitDialog = false) { if ($strListIdentifier != "searchResultList") { return parent::getNewEntryAction($strListIdentifier, $bitDialog); } }
/** * @param class_model $objListEntry * * @return string */ protected function renderChangeHistoryAction(class_model $objListEntry) { if ($objListEntry instanceof class_module_workflows_handler) { return ""; } return parent::renderChangeHistoryAction($objListEntry); }
/** * Helper to generate a small path-navigation * * @return array */ protected function getArrOutputNaviEntries() { $arrPath = $this->getPathArray(); $arrPathLinks = parent::getArrOutputNaviEntries(); array_pop($arrPathLinks); $arrPathLinks[] = class_link::getLinkAdmin("pages", "list", "&unlockid=" . $this->getSystemid(), $this->getLang("modul_titel", "pages")); foreach ($arrPath as $strOneSystemid) { /** @var $objObject class_module_pages_folder|class_module_pages_page */ $objObject = class_objectfactory::getInstance()->getObject($strOneSystemid); //Skip Elements: No sense to show in path-navigation if ($objObject == null || $objObject->getIntModuleNr() == _pages_content_modul_id_) { continue; } if ($objObject instanceof class_module_pages_folder) { $arrPathLinks[] = class_link::getLinkAdmin("pages", "list", "&systemid=" . $strOneSystemid . "&unlockid=" . $this->getSystemid(), $objObject->getStrName()); } if ($objObject instanceof class_module_pages_page) { $arrPathLinks[] = class_link::getLinkAdmin("pages", "list", "&systemid=" . $strOneSystemid . "&unlockid=" . $this->getSystemid(), $objObject->getStrBrowsername()); } } return $arrPathLinks; }
/** * Internal redefinition in order to match the internal, "real" action to * the action based on the passed, declarative action. * * @return string */ protected function getQuickHelp() { $strOldAction = $this->getAction(); $this->setAction($this->strOriginalAction); $strQuickhelp = parent::getQuickHelp(); $this->setAction($strOldAction); return $strQuickhelp; }
/** * @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); }
/** * Creates a pathnavigation through all folders till the current page / folder * * @return array */ protected function getArrOutputNaviEntries() { $arrPathLinks = parent::getArrOutputNaviEntries(); $arrPath = $this->getPathArray($this->getSystemid()); //Link to root-folder foreach ($arrPath as $strOneFolderID) { /** @var $objInstance class_module_pages_folder|class_module_pages_page */ $objInstance = class_objectfactory::getInstance()->getObject($strOneFolderID); if ($objInstance instanceof class_module_pages_folder) { $arrPathLinks[] = class_link::getLinkAdmin("pages", "list", "&systemid=" . $strOneFolderID . "&unlockid=" . $this->getSystemid(), $objInstance->getStrName()); } if ($objInstance instanceof class_module_pages_page) { $arrPathLinks[] = class_link::getLinkAdmin("pages", "list", "&systemid=" . $strOneFolderID . "&unlockid=" . $this->getSystemid(), $objInstance->getStrBrowsername()); } } return $arrPathLinks; }