24 include_once
'./Services/Mail/classes/class.ilMailNotification.php';
64 $this->appointment_id = $a_id;
66 include_once
'./Services/Calendar/classes/class.ilCalendarEntry.php';
76 return $this->appointment;
90 include_once
'./Services/Calendar/classes/class.ilCalendarEntry.php';
92 $this->
appendBody($app->appointmentToMailString($this->getLanguage()));
102 global $rbacreview,
$lng;
106 case self::TYPE_USER:
109 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
125 $this->
getMail()->appendInstallationSignature(
true);
135 case self::TYPE_USER_ANONYMOUS:
140 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
157 $this->
getMail()->appendInstallationSignature(
true);
167 case self::TYPE_GRP_NEW_NOTIFICATION:
171 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
189 $this->
getMail()->appendInstallationSignature(
true);
196 case self::TYPE_GRP_NOTIFICATION:
200 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
218 $this->
getMail()->appendInstallationSignature(
true);
225 case self::TYPE_CRS_NEW_NOTIFICATION:
229 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
246 $this->
getMail()->appendInstallationSignature(
true);
253 case self::TYPE_CRS_NOTIFICATION:
257 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
275 $this->
getMail()->appendInstallationSignature(
true);
282 case self::TYPE_BOOKING_CONFIRMATION:
285 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
286 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
291 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
294 sprintf($this->
getLanguageText(
'cal_booking_confirmation_subject'),$entry->getTitle())
311 $this->
getMail()->appendInstallationSignature(
true);
322 case self::TYPE_BOOKING_CANCELLATION:
325 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
326 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
332 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
335 sprintf($this->
getLanguageText(
'cal_booking_cancellation_subject'),$entry->getTitle())
346 $this->
getMail()->appendInstallationSignature(
true);
361 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
362 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
367 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
370 sprintf($this->
getLanguageText(
'cal_ch_booking_reminder_subject'),$entry->getTitle())
381 $this->
getMail()->appendInstallationSignature(
true);
394 include_once
'./Services/Calendar/classes/Export/class.ilCalendarExport.php';
400 include_once
'./Services/Mail/classes/class.ilFileDataMail.php';
402 $attachment->storeAsAttachment(
404 $export->getExportString()
419 include_once
'./Services/Mail/classes/class.ilFileDataMail.php';
getAppointment()
Get appointment.
__construct()
Constructor.
getType()
Get notification type.
Model for a calendar entry.
const EXPORT_APPOINTMENTS
const TYPE_BOOKING_REMINDER
const TYPE_BOOKING_CONFIRMATION
This class handles all operations on files (attachments) in directory ilias_data/mail.
static _lookupFullname($a_user_id)
Lookup Full Name.
Distributes calendar mail notifications.
getLanguageText($a_keyword)
setSender($a_usr_id)
Set sender of mail.
initLanguage($a_usr_id)
Init language.
setAttachments($a_att)
Set attachments.
setAppointmentId($a_id)
Set calendar appointment id.
static _getLanguage($a_lang_key='')
Get langauge object.
const TYPE_GRP_NEW_NOTIFICATION
Base class for course/group mail notifications.
Export calendar(s) to ical format
getObjectTitle($a_shorten=false)
const TYPE_CRS_NOTIFICATION
getAttachments()
Get attachments.
getAppointmentId()
get appointment id
Create styles array
The data for the language used.
sendMail(array $a_rcp, $a_type, $a_parse_recipients=true)
const TYPE_BOOKING_CANCELLATION
getRecipients()
get array of recipients
createPermanentLink($a_params=array(), $a_append='')
getSender()
get sender of mail
const TYPE_GRP_NOTIFICATION
appendBody($a_body)
Append body text.
deleteAttachments()
Delete attachments.
const TYPE_CRS_NEW_NOTIFICATION
const TYPE_USER_ANONYMOUS
appendAppointmentDetails()