Stud.IP  5.4
ConsultationMailer Class Reference

Static Public Member Functions

static sendMessage (?User $sender, User $user, ConsultationBooking $booking, string $subject, ?string $reason='')
 
static sendBookingMessageToResponsibilities (?User $sender, ConsultationBooking $booking)
 
static sendBookingMessageToUser (?User $sender, ConsultationBooking $booking)
 
static sendReasonMessage (?User $sender, ConsultationBooking $booking, User $receiver)
 
static sendCancelMessageToResponsibilities (?User $sender, ConsultationBooking $booking, string $reason='')
 
static sendCancelMessageToUser (?User $sender, ConsultationBooking $booking, string $reason)
 

Detailed Description

Author
Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m GPL2 or any later version

Member Function Documentation

◆ sendBookingMessageToResponsibilities()

static sendBookingMessageToResponsibilities ( ?User  $sender,
ConsultationBooking  $booking 
)
static

Send a booking information message to the teacher of the booked slot.

Parameters
User | null$sender
ConsultationBooking$bookingThe booking

◆ sendBookingMessageToUser()

static sendBookingMessageToUser ( ?User  $sender,
ConsultationBooking  $booking 
)
static

Send a booking information message to the user of the booked slot.

Parameters
User | null$sender
ConsultationBooking$bookingThe booking

◆ sendCancelMessageToResponsibilities()

static sendCancelMessageToResponsibilities ( ?User  $sender,
ConsultationBooking  $booking,
string  $reason = '' 
)
static

Send a cancelation message to the teacher of the booked slot.

Parameters
User | null$sender
ConsultationBooking$bookingThe booking
String$reasonReason of the cancelation

◆ sendCancelMessageToUser()

static sendCancelMessageToUser ( ?User  $sender,
ConsultationBooking  $booking,
string  $reason 
)
static

Send a cancelation message to the user of the booked slot.

Parameters
User | null$sender
ConsultationBooking$bookingThe booking
String$reasonReason of the cancelation

◆ sendMessage()

static sendMessage ( ?User  $sender,
User  $user,
ConsultationBooking  $booking,
string  $subject,
?string  $reason = '' 
)
static

Sends a consultation information message.

Parameters
User | null$senderSender
User$userRecipient
ConsultationBooking$bookingBooking in question
string$subjectSubject of the message
string | null$reasonReason for a booking or cancelation

◆ sendReasonMessage()

static sendReasonMessage ( ?User  $sender,
ConsultationBooking  $booking,
User  $receiver 
)
static

Send an information message about a changed reason to a user of the booked slot.

Parameters
User | null$senderThe sender of the message
ConsultationBooking$bookingThe booking
User$receiverThe receiver of the message

The documentation for this class was generated from the following file: