/** * @param class_model|class_module_mediamanager_repo|class_module_mediamanager_file $objListEntry * @return array */ protected function renderAdditionalActions(class_model $objListEntry) { if ($objListEntry instanceof class_module_mediamanager_repo && $objListEntry->rightView()) { return array($this->objToolkit->listButton(class_link::getLinkAdmin($this->getArrModule("modul"), "openFolder", "&sync=true&systemid=" . $objListEntry->getSystemid(), "", $this->getLang("action_open_folder"), "icon_folderActionOpen"))); } else { if ($objListEntry instanceof class_module_mediamanager_file && $objListEntry->getIntType() == class_module_mediamanager_file::$INT_TYPE_FOLDER && $objListEntry->rightView()) { return array($this->objToolkit->listButton(class_link::getLinkAdmin($this->getArrModule("modul"), "openFolder", "&systemid=" . $objListEntry->getSystemid(), "", $this->getLang("action_open_folder"), "icon_folderActionOpen"))); } else { if ($objListEntry instanceof class_module_mediamanager_file && $objListEntry->getIntType() == class_module_mediamanager_file::$INT_TYPE_FILE) { $arrReturn = array(); //add a crop icon? $arrMime = $this->objToolkit->mimeType($objListEntry->getStrFilename()); if (($arrMime[1] == "jpg" || $arrMime[1] == "png" || $arrMime[1] == "gif") && $objListEntry->rightEdit()) { $arrReturn[] = $this->objToolkit->listButton(class_link::getLinkAdminDialog($this->getArrModule("modul"), "imageDetails", "&file=" . $objListEntry->getStrFilename(), "", $this->getLang("action_edit_image"), "icon_crop", $objListEntry->getStrDisplayName())); } if ($objListEntry->rightRight2()) { $arrReturn[] = $this->objToolkit->listButton(class_link::getLinkAdminManual("href='" . _webpath_ . "/download.php?systemid=" . $objListEntry->getSystemid() . "'", $this->getLang("action_download"), $this->getLang("action_download"), "icon_downloads")); } return $arrReturn; } } } return array(); }
/** * Renders the button to open the records' change history. In most cases, this is done in a overlay. * To open the change-history, the permission "right3" on the system-module is required. * * @param class_model|interface_model $objListEntry * * @return string */ protected function renderChangeHistoryAction(class_model $objListEntry) { if (class_module_system_setting::getConfigValue("_system_changehistory_enabled_") == "true" && $objListEntry instanceof interface_versionable && $objListEntry->rightChangelog()) { return $this->objToolkit->listButton(class_link::getLinkAdminDialog("system", "genericChangelog", "&systemid=" . $objListEntry->getSystemid() . "&folderview=1", $this->getLang("commons_edit_history"), $this->getLang("commons_edit_history"), "icon_history", $objListEntry->getStrDisplayName())); } return ""; }
/** * @param class_model $objListEntry * * @return array */ protected function renderAdditionalActions(class_model $objListEntry) { if ($objListEntry instanceof class_module_mediamanager_file && $objListEntry->getIntType() == class_module_mediamanager_file::$INT_TYPE_FOLDER) { return array($this->objToolkit->listButton(class_link::getLinkAdmin($this->getArrModule("modul"), "openFolder", "&systemid=" . $objListEntry->getSystemid(), "", $this->getLang("action_open_folder", "mediamanager"), "icon_folderActionOpen"))); } else { if ($objListEntry instanceof class_module_mediamanager_file && $objListEntry->getIntType() == class_module_mediamanager_file::$INT_TYPE_FILE) { return array($this->objToolkit->listButton(class_link::getLinkAdminDialog($this->getArrModule("modul"), "showInfo", "&systemid=" . $objListEntry->getSystemid(), $this->getLang("package_info"), $this->getLang("package_info"), "icon_lens", $objListEntry->getStrDisplayName()))); } } return array(); }