19declare(strict_types=1);
27 protected \ilObjUser
$to;
28 protected \ilObjUser
$cc;
69 public function send(): void
71 $notif = new \ilSystemNotification();
72 $notif->setLangModules([
'etal',
'orgu']);
76 $notif->getUserLanguage($this->to->getId())->txt($this->subject_key),
80 $notif->setRefId($this->talk_ref_id);
82 $notif->setIntroductionLangId($this->message_key);
84 $notif->addAdditionalInfo(
89 if ($this->talk_description) {
90 $notif->addAdditionalInfo(
92 $this->talk_description
96 if ($this->talk_location) {
97 $notif->addAdditionalInfo(
103 $notif->addAdditionalInfo(
105 $this->cc->getFullname()
108 $notif->addAdditionalInfo(
109 'notification_talks_date_list_header',
110 "- " . implode(
"\r\n- ", $this->dates),
114 if ($this->add_goto) {
115 $notif->addAdditionalInfo(
121 $attachment_name =
'appointments.ics';
123 $attachments = $rcid !==
null
129 $this->
to->getLogin(),
130 $this->cc->getLogin(),
133 $notif->composeAndGetMessage($this->to->getId(),
null,
'',
true),
141 $this->talk_ref_id .
'&client_id=' .
CLIENT_ID;
__construct(\ilObjUser $to, \ilObjUser $cc, int $talk_ref_id, string $talk_name, string $talk_description, string $talk_location, string $subject_key, string $message_key, string $attachment, bool $add_goto, string ... $dates,)
static fromIrss(ResourceCollectionIdentification $rcid)
to(\GdImage $image, ?int $quality=null)
Currently this is the only way to make a FileStream from a GD image resource.