3 declare(strict_types=1);
32 self::TYPE_NOTIFICATION_REGISTRATION,
33 self::TYPE_NOTIFICATION_REGISTRATION_REQUEST,
34 self::TYPE_NOTIFICATION_UNSUBSCRIBE
46 parent::__construct();
54 $this->force_sending_mail = $status;
57 public function send() : bool
60 $this->logger->info(
'Membership mail disabled globally.');
65 case self::TYPE_ADMISSION_MEMBER:
88 $this->
getMail()->appendInstallationSignature(
true);
89 $this->
sendMail(array($rcp), array(
'system'));
92 case self::TYPE_DISMISS_MEMBER:
109 $this->
getMail()->appendInstallationSignature(
true);
110 $this->
sendMail(array($rcp), array(
'system'));
113 case self::TYPE_NOTIFICATION_REGISTRATION:
142 'lso_notification_explanation_admin' 144 $this->
getMail()->appendInstallationSignature(
true);
145 $this->
sendMail(array($rcp), array(
'system'));
148 case self::TYPE_UNSUBSCRIBE_MEMBER:
165 $this->
getMail()->appendInstallationSignature(
true);
166 $this->
sendMail(array($rcp), array(
'system'));
169 case self::TYPE_NOTIFICATION_UNSUBSCRIBE:
191 'lso_mail_notification_unsub_bod2' 202 'lso_notification_explanation_admin' 205 $this->
getMail()->appendInstallationSignature(
true);
206 $this->
sendMail(array($rcp), array(
'system'));
209 case self::TYPE_SUBSCRIBE_MEMBER:
234 $this->
getMail()->appendInstallationSignature(
true);
235 $this->
sendMail(array($rcp), array(
'system'));
238 case self::TYPE_NOTIFICATION_REGISTRATION_REQUEST:
267 $this->
getMail()->appendInstallationSignature(
true);
268 $this->
sendMail(array($rcp), array(
'system'));
271 case self::TYPE_REFUSED_SUBSCRIPTION_MEMBER:
288 $this->
getMail()->appendInstallationSignature(
true);
289 $this->
sendMail(array($rcp), array(
'system'));
292 case self::TYPE_ACCEPTED_SUBSCRIPTION_MEMBER:
312 $this->
getMail()->appendInstallationSignature(
true);
313 $this->
sendMail(array($rcp), array(
'system'));
316 case self::TYPE_WAITING_LIST_MEMBER:
335 $this->
getMail()->appendInstallationSignature(
true);
336 $this->
sendMail(array($rcp), array(
'system'));
339 case self::TYPE_STATUS_CHANGED:
364 $this->
getMail()->appendInstallationSignature(
true);
365 $this->
sendMail(array($rcp), array(
'system'));
374 parent::initLanguage($usr_id);
384 if ($part->isAdmin($usr_id)) {
390 if ($part->isAdmin($usr_id)) {
393 if ($part->isNotificationEnabled($usr_id)) {
406 $this->force_sending_mail ||
407 $this->
settings->get(
'mail_lso_member_notification',
true) ||
408 in_array($type, $this->permanent_enabled_notifications)
const TYPE_STATUS_CHANGED
getType()
Get notification type.
static _getInstanceByObjId(int $obj_id)
const TYPE_NOTIFICATION_UNSUBSCRIBE
const TYPE_WAITING_LIST_MEMBER
const TYPE_ACCEPTED_SUBSCRIPTION_MEMBER
const TYPE_DISMISS_MEMBER
isNotificationTypeEnabled(int $type)
getLanguageText($a_keyword)
const TYPE_REFUSED_SUBSCRIPTION_MEMBER
$permanent_enabled_notifications
Notifications which are not affected by "mail_grp_member_notification" setting because they addresses...
getAdditionalInformation()
Base class for course/group mail notifications.
const TYPE_ADMISSION_MEMBER
const TYPE_BLOCKED_MEMBER
forceSendingMail(bool $status)
getObjectTitle($a_shorten=false)
const TYPE_SUBSCRIBE_MEMBER
sendMail(array $a_rcp, $a_type, $a_parse_recipients=true)
const TYPE_UNBLOCKED_MEMBER
getRecipients()
get array of recipients
createLearningSequenceStatus(int $usr_id)
createPermanentLink($a_params=array(), $a_append='')
const TYPE_NOTIFICATION_REGISTRATION_REQUEST
__construct(ilLogger $logger, ilSetting $settings)
appendBody($a_body)
Append body text.
const TYPE_UNSUBSCRIBE_MEMBER
Component logger with individual log levels by component id.
const TYPE_NOTIFICATION_REGISTRATION
static getSalutation($a_usr_id, ilLanguage $a_language=null)