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); }
/** * @param class_model|class_module_user_user $objListEntry * * @return array */ protected function renderAdditionalActions(class_model $objListEntry) { $objUsersources = new class_module_user_sourcefactory(); $arrReturn = array(); if ($objListEntry instanceof class_module_user_user && $objListEntry->rightEdit() && $objUsersources->getUsersource($objListEntry->getStrSubsystem())->getMembersEditable()) { $arrReturn[] = $this->objToolkit->listButton(class_link::getLinkAdminDialog("user", "editMemberships", "&systemid=" . $objListEntry->getSystemid() . "&folderview=1", "", $this->getLang("user_zugehoerigkeit"), "icon_group", $objListEntry->getStrUsername())); } $objValidator = new class_email_validator(); if ($objListEntry instanceof class_module_user_user && $objListEntry->getObjSourceUser()->isEditable() && $objListEntry->getIntActive() == 1 && $objListEntry->getObjSourceUser()->isPasswordResettable() && $objListEntry->rightEdit() && $objValidator->validate($objListEntry->getStrEmail())) { $arrReturn[] = $this->objToolkit->listButton(class_link::getLinkAdmin("user", "sendPassword", "&systemid=" . $objListEntry->getSystemid(), "", $this->getLang("user_password_resend"), "icon_mailNew")); } if ($objListEntry instanceof class_module_user_user && $objListEntry->getIntActive() == 1) { $arrReturn[] = $this->objToolkit->listButton(class_link::getLinkAdminDialog("messaging", "new", "&messaging_user_id=" . $objListEntry->getSystemid(), "", $this->getLang("user_send_message"), "icon_mail", $this->getLang("user_send_message"))); } if ($objListEntry instanceof class_module_user_user && $objListEntry->getIntActive() == 1 && class_carrier::getInstance()->getObjSession()->isSuperAdmin()) { $arrReturn[] = $this->objToolkit->listButton(class_link::getLinkAdmin("user", "switchToUser", "&systemid=" . $objListEntry->getSystemid(), "", $this->getLang("user_switch_to"), "icon_userswitch")); } if ($objListEntry instanceof class_module_user_group && $objListEntry->rightEdit()) { $arrReturn[] = $this->objToolkit->listButton(class_link::getLinkAdmin("user", "groupMember", "&systemid=" . $objListEntry->getSystemid(), "", $this->getLang("action_group_member"), "icon_group")); } return $arrReturn; }