protected function renderAdditionalActions(class_model $objListEntry)
 {
     if ($objListEntry->rightEdit() && $objListEntry instanceof class_module_votings_voting) {
         return array($this->objToolkit->listButton(getLinkAdmin($this->getArrModule("modul"), "listAnswers", "&systemid=" . $objListEntry->getSystemid(), "", $this->getLang("action_list_answers"), "icon_folderActionOpen")));
     }
     return parent::renderAdditionalActions($objListEntry);
 }
 protected function getBatchActionHandlers($strListIdentifier)
 {
     if ($strListIdentifier == class_module_faqs_admin::STR_FAQ_LIST) {
         return $this->getDefaultActionHandlers();
     }
     return parent::getBatchActionHandlers($strListIdentifier);
 }
 protected function getNewEntryAction($strListIdentifier, $bitDialog = false)
 {
     if ($this->getObjModule()->rightEdit() && $this->getStrCurObjectTypeName() != "Post") {
         return parent::getNewEntryAction($strListIdentifier, $bitDialog);
     }
     return "";
 }
 protected function renderAdditionalActions(class_model $objListEntry)
 {
     if ($objListEntry->rightEdit() && $objListEntry instanceof class_module_eventmanager_event) {
         return array($this->objToolkit->listButton(getLinkAdmin($this->getArrModule("modul"), "listParticipant", "&systemid=" . $objListEntry->getSystemid(), "", $this->getLang("action_list_participant"), "icon_group")));
     }
     if ($objListEntry instanceof class_module_eventmanager_participant) {
         if ($objListEntry->rightEdit()) {
             $objValidator = new class_email_validator();
             $objEvent = new class_module_eventmanager_event($objListEntry->getPrevId());
             if ($objValidator->validate($objListEntry->getStrEmail())) {
                 $strPreset = "&mail_recipient=" . $objListEntry->getStrEmail();
                 $strPreset .= "&mail_subject=" . $this->getLang("participant_mail_subject");
                 $strPreset .= "&mail_body=" . $this->getLang("participant_mail_intro") . "\n" . $this->getLang("event_title") . " " . $objEvent->getStrTitle() . "\n" . $this->getLang("event_location") . " " . $objEvent->getStrLocation() . "\n" . $this->getLang("event_start") . " " . dateToString($objEvent->getObjStartDate());
                 return array($this->objToolkit->listButton(getLinkAdminDialog("system", "mailForm", $strPreset, "", $this->getLang("participant_mail"), "icon_mail")));
             }
         }
     }
     return parent::renderAdditionalActions($objListEntry);
 }
 public function getActionIcons($objOneIterable, $strListIdentifier = "")
 {
     if ($strListIdentifier == "assignedTagList") {
         //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);
 }
 /**
  * @return string
  */
 protected function actionNew()
 {
     $this->setStrCurObjectTypeName("");
     $this->setCurObjectClassName("class_module_messaging_message");
     $this->setArrModuleEntry("template", "/folderview.tpl");
     return parent::actionNew();
 }
 /**
  * @param interface_admin_listable $objOneIterable
  * @param string $strListIdentifier
  *
  * @return string
  */
 protected function renderGridEntryClickAction($objOneIterable, $strListIdentifier)
 {
     if ($strListIdentifier == self::INT_LISTTYPE_FOLDERVIEW && $objOneIterable instanceof class_module_mediamanager_file) {
         if ($objOneIterable->getIntType() == class_module_mediamanager_file::$INT_TYPE_FOLDER) {
             return "onclick=\"document.location='" . class_link::getLinkAdminHref($this->getArrModule("modul"), "folderContentFolderviewMode", "&form_element=" . $this->getParam("form_element") . "&systemid=" . $objOneIterable->getSystemid()) . "'\"";
         } else {
             if ($objOneIterable->getIntType() == class_module_mediamanager_file::$INT_TYPE_FILE) {
                 $strValue = $objOneIterable->getStrFilename();
                 $arrMime = $this->objToolkit->mimeType($strValue);
                 $bitImage = false;
                 if ($arrMime[1] == "jpg" || $arrMime[1] == "png" || $arrMime[1] == "gif") {
                     $bitImage = true;
                 }
                 if ($bitImage && $this->getParam("form_element") == "ckeditor") {
                     $strValue = _webpath_ . "/image.php?image=" . $strValue;
                 } else {
                     $strValue = _webpath_ . $strValue;
                 }
                 return "onclick=\"KAJONA.admin.folderview.selectCallback([['" . $this->getParam("form_element") . "', '" . $strValue . "']]);\"";
             }
         }
         return "";
     }
     return parent::renderGridEntryClickAction($objOneIterable, $strListIdentifier);
 }
 /**
  * @param string $strListIdentifier
  * @param bool $bitDialog
  *
  * @return array|string
  */
 protected function getNewEntryAction($strListIdentifier, $bitDialog = false)
 {
     if ($strListIdentifier == class_module_news_admin::STR_CAT_LIST) {
         return $this->objToolkit->listButton(class_link::getLinkAdmin($this->getArrModule("modul"), "newCategory", "", $this->getLang("commons_create_category"), $this->getLang("commons_create_category"), "icon_new"));
     } else {
         if ($strListIdentifier == class_module_news_admin::STR_NEWS_LIST) {
             return $this->objToolkit->listButton(class_link::getLinkAdmin($this->getArrModule("modul"), "newNews", "", $this->getLang("action_new_news"), $this->getLang("action_new_news"), "icon_new"));
         }
     }
     return parent::getNewEntryAction($strListIdentifier, $bitDialog);
 }