$message .= "\n\n". _("Betroffener Termin:") . "\n" . $termin->toString(); } if ($reqObj->getMetadateId()) { $cycle = SeminarCycleDate::find($reqObj->getMetadateId()); $message .= "\n\n". _("Betroffene Zeit:") . "\n" . $cycle->toString('full'); } // fetch the names of the lecutrers to display them in the message foreach($semObj->getMembers('dozent') as $dozenten){ $title[] = $dozenten['Nachname']; } if($semObj->seminar_number) $title[] = $semObj->seminar_number; $title[] = mila($semObj->getName(),30); $reqObj->setReplyComment($decline_message); $reqObj->store(); foreach ($users as $userid) { setTempLanguage($userid); $messaging->insert_message($message, get_username($userid), $user->id, FALSE, FALSE, FALSE, FALSE, _("Raumanfrage abgelehnt:") .' '. implode(', ', $title), TRUE, 'high'); restoreLanguage(); } } // the room-request has been resolved else { // create appropriate message if ($semObj->seminar_number) $message = sprintf (_("Ihre Raumanfrage zur Veranstaltung %s (%s) wurde bearbeitet.")." \n"._("Für folgende Belegungszeiten wurde der jeweils angegebene Raum gebucht:")."\n\n", $semObj->getName(), $semObj->seminar_number); else