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()));
101 global $rbacreview,
$lng;
104 case self::TYPE_USER:
107 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
123 $this->
getMail()->appendInstallationSignature(
true);
133 case self::TYPE_USER_ANONYMOUS:
138 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
155 $this->
getMail()->appendInstallationSignature(
true);
165 case self::TYPE_GRP_NEW_NOTIFICATION:
169 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
187 $this->
getMail()->appendInstallationSignature(
true);
194 case self::TYPE_GRP_NOTIFICATION:
198 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
216 $this->
getMail()->appendInstallationSignature(
true);
223 case self::TYPE_CRS_NEW_NOTIFICATION:
227 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
244 $this->
getMail()->appendInstallationSignature(
true);
251 case self::TYPE_CRS_NOTIFICATION:
255 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
273 $this->
getMail()->appendInstallationSignature(
true);
280 case self::TYPE_BOOKING_CONFIRMATION:
283 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
284 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
289 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
292 sprintf($this->
getLanguageText(
'cal_booking_confirmation_subject'), $entry->getTitle())
309 $this->
getMail()->appendInstallationSignature(
true);
320 case self::TYPE_BOOKING_CANCELLATION:
323 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
324 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
330 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
333 sprintf($this->
getLanguageText(
'cal_booking_cancellation_subject'), $entry->getTitle())
344 $this->
getMail()->appendInstallationSignature(
true);
359 include_once
'Services/Calendar/classes/class.ilCalendarEntry.php';
360 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
365 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
368 sprintf($this->
getLanguageText(
'cal_ch_booking_reminder_subject'), $entry->getTitle())
379 $this->
getMail()->appendInstallationSignature(
true);
391 include_once
'./Services/Calendar/classes/Export/class.ilCalendarExport.php';
397 include_once
'./Services/Mail/classes/class.ilFileDataMail.php';
399 $attachment->storeAsAttachment(
401 $export->getExportString()
416 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()
static getSalutation($a_usr_id, ilLanguage $a_language=null)