24 include_once
'./Services/Mail/classes/class.ilMailNotification.php';
63 $this->appointment_id = $a_id;
65 include_once
'./Services/Calendar/classes/class.ilCalendarEntry.php';
75 return $this->appointment;
89 include_once
'./Services/Calendar/classes/class.ilCalendarEntry.php';
91 $this->
appendBody($app->appointmentToMailString($this->getLanguage()));
103 $rbacreview = $DIC[
'rbacreview'];
107 case self::TYPE_USER:
110 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
126 $this->
getMail()->appendInstallationSignature(
true);
136 case self::TYPE_USER_ANONYMOUS:
141 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
158 $this->
getMail()->appendInstallationSignature(
true);
168 case self::TYPE_GRP_NEW_NOTIFICATION:
172 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
190 $this->
getMail()->appendInstallationSignature(
true);
194 $this->
sendMail(array(
'#il_grp_admin_' . $this->
getRefId(),
'#il_grp_member_' . $this->
getRefId()), array(
'system'),
false);
197 case self::TYPE_GRP_NOTIFICATION:
201 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
219 $this->
getMail()->appendInstallationSignature(
true);
223 $this->
sendMail(array(
'#il_grp_admin_' . $this->
getRefId(),
'#il_grp_member_' . $this->
getRefId()), array(
'system'),
false);
226 case self::TYPE_CRS_NEW_NOTIFICATION:
230 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
247 $this->
getMail()->appendInstallationSignature(
true);
251 $this->
sendMail(array(
'#il_crs_admin_' . $this->
getRefId(),
'#il_crs_tutor_' . $this->
getRefId(),
'#il_crs_member_' . $this->
getRefId()), array(
'system'),
false);
254 case self::TYPE_CRS_NOTIFICATION:
258 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
276 $this->
getMail()->appendInstallationSignature(
true);
280 $this->
sendMail(array(
'#il_crs_admin_' . $this->
getRefId(),
'#il_crs_tutor_' . $this->
getRefId(),
'#il_crs_member_' . $this->
getRefId()), array(
'system'),
false);
283 case self::TYPE_BOOKING_CONFIRMATION:
286 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
287 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
292 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
295 sprintf($this->
getLanguageText(
'cal_booking_confirmation_subject'), $entry->getTitle())
312 $this->
getMail()->appendInstallationSignature(
true);
314 $this->
sendMail(array($user_id), array(
'system'),
true);
320 $this->
sendMail(array($booking->getObjId()), array(
'system'),
true);
323 case self::TYPE_BOOKING_CANCELLATION:
326 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
327 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
333 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
336 sprintf($this->
getLanguageText(
'cal_booking_cancellation_subject'), $entry->getTitle())
347 $this->
getMail()->appendInstallationSignature(
true);
349 $this->
sendMail(array($user_id), array(
'system'),
true);
355 $this->
sendMail(array($booking->getObjId()), array(
'system'),
true);
362 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
363 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
368 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
371 sprintf($this->
getLanguageText(
'cal_ch_booking_reminder_subject'), $entry->getTitle())
382 $this->
getMail()->appendInstallationSignature(
true);
383 $this->
sendMail(array($user_id), array(
'system'),
true);
396 include_once
'./Services/Calendar/classes/Export/class.ilCalendarExport.php';
402 include_once
'./Services/Mail/classes/class.ilFileDataMail.php';
404 $attachment->storeAsAttachment(
406 $export->getExportString()
421 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
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
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()
static getSalutation($a_usr_id, ilLanguage $a_language=null)