/** * Generates a booking acknowledgement about a booking cancel for the users via mail. * * @param array $a_deletedUser * user-id who get the mail */ private function sendBookingUpdatedNotificationToCanceldUser($a_deletedUser) { $room_name = $this->ilRoomsharingDatabase->getRoomName($this->room_id); $mailer = new ilRoomSharingMailer($this->lng); $mailer->setRoomname($room_name); $mailer->setDateStart($this->date_from); $mailer->setDateEnd($this->date_to); $mailer->sendCancellationMailToParticipants($a_deletedUser); }
/** * Send cancellation email. * * @param array $booking_details Information about the booking * @param array $participants Participants of the booking who should * get the mail * @param boolean $a_removed_by_higher_priority True when the booking * was cancelled due to higher priority */ public function sendCancellationNotification($booking_details, $participants, $a_removed_by_higher_priority = false) { $room_id = $booking_details[0]['room_id']; $room_name = $this->ilRoomsharingDatabase->getRoomName($room_id); $user_id = $booking_details[0]['user_id']; $date_from = $booking_details[0]['date_from']; $date_to = $booking_details[0]['date_to']; $mailer = new ilRoomSharingMailer($this->lng); $mailer->setRoomname($room_name); $mailer->setDateStart($date_from); $mailer->setDateEnd($date_to); if ($a_removed_by_higher_priority) { $mailer->setReason($this->lng->txt('rep_robj_xrs_mail_cancellation_reason_higher_priority')); } else { $mailer->setReason($this->lng->txt('rep_robj_xrs_mail_cancellation_reason_manually')); } $mailer->sendCancellationMailWithReason($user_id, $participants); }