19declare(strict_types=1);
48 public function __construct(
bool $a_is_personal_workspace =
false)
53 $this->
lng = $DIC->language();
54 $this->rbacreview =
$DIC->rbac()->review();
59 $this->appointment_id = $a_id;
65 $this->booker_id =
$id;
86 $this->
appendBody($app->appointmentToMailString($this->getLanguage()));
89 public function send(): void
94 $rcp = array_pop($rcps);
96 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
112 $this->
getMail()->appendInstallationSignature(
true);
124 $rcp = array_pop($rcps);
127 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
144 $this->
getMail()->appendInstallationSignature(
true);
157 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
175 $this->
getMail()->appendInstallationSignature(
true);
180 array(
'#il_grp_admin_' . $this->
getRefId(),
'#il_grp_member_' . $this->
getRefId()),
189 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
207 $this->
getMail()->appendInstallationSignature(
true);
212 array(
'#il_grp_admin_' . $this->
getRefId(),
'#il_grp_member_' . $this->
getRefId()),
221 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
238 $this->
getMail()->appendInstallationSignature(
true);
243 '#il_crs_tutor_' . $this->
getRefId(),
244 '#il_crs_member_' . $this->
getRefId()
252 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
270 $this->
getMail()->appendInstallationSignature(
true);
275 '#il_crs_tutor_' . $this->
getRefId(),
276 '#il_crs_member_' . $this->
getRefId()
288 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
291 sprintf($this->
getLanguageText(
'cal_booking_confirmation_subject'), $entry->getTitle())
314 $this->
getMail()->appendInstallationSignature(
true);
326 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
329 sprintf($this->
getLanguageText(
'cal_booking_confirmation_subject'), $entry->getTitle())
333 if (
$user_id == $booking->getObjId()) {
361 foreach ($booking->getCurrentBookings($entry->getEntryId()) as $bookusers) {
367 if ($participants !== []) {
370 implode(
', ', $participants)
374 $static_url = new \ILIAS\Calendar\URL\CalendarStaticURLHandler();
381 $this->
getMail()->appendInstallationSignature(
true);
395 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
398 sprintf($this->
getLanguageText(
'cal_booking_cancellation_subject'), $entry->getTitle())
412 $this->
getMail()->appendInstallationSignature(
true);
420 $this->
sendMail(array($booking->getObjId()),
true);
432 $this->
getLanguage()->loadLanguageModule(
'dateplaner');
435 sprintf($this->
getLanguageText(
'cal_ch_booking_reminder_subject'), $entry->getTitle())
447 $this->
getMail()->appendInstallationSignature(
true);
462 $ics_filename =
'appointment_' . (
new DateTimeImmutable(
'now'))->format(
'Ymd_His_u') .
'.ics';
465 $effective_ics_filename = $attachment->storeAsAttachment(
467 $export->getExportString()
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
static lookupBookingMessage(int $a_entry_id, int $a_usr_id)
Model for a calendar entry.
@classDescription Export calendar(s) to ical format
const EXPORT_APPOINTMENTS
Distributes calendar mail notifications.
ilCalendarEntry $appointment
const TYPE_BOOKING_REMINDER
appendAppointmentDetails()
__construct(bool $a_is_personal_workspace=false)
setAppointmentId(int $a_id)
const TYPE_USER_ANONYMOUS
const TYPE_BOOKING_CONFIRMATION
const TYPE_BOOKING_CANCELLATION
const TYPE_CRS_NEW_NOTIFICATION
const TYPE_CRS_NOTIFICATION
const TYPE_BOOKING_CONFIRMATION_MANAGER
const TYPE_GRP_NOTIFICATION
const TYPE_GRP_NEW_NOTIFICATION
static _getLanguage(string $a_lang_key='')
Get language object.
getObjectTitle(bool $a_shorten=false)
setLanguage(ilLanguage $a_language)
sendMail(array $a_rcp, bool $a_parse_recipients=true)
createPermanentLink(array $a_params=[], string $a_append='')
getLanguageText(string $a_keyword)
appendBody(string $a_body)
setSubject(string $a_subject)
setAttachments(array $a_att)
initLanguage(int $a_usr_id)
static getSalutation(int $a_usr_id, ?ilLanguage $a_language=null)
static _lookupFullname(int $a_user_id)
class ilRbacReview Contains Review functions of core Rbac.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc