/** * Generates a booking acknowledgement via mail. * * @return array $recipient_ids List of recipients. */ private function sendBookingNotification() { $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->sendBookingMail($this->user->getId(), $this->participants); }