3 declare(strict_types=1);
45 self::TYPE_NOTIFICATION_REGISTRATION,
46 self::TYPE_NOTIFICATION_REGISTRATION_REQUEST,
47 self::TYPE_NOTIFICATION_UNSUBSCRIBE
64 $this->force_sending_mail = $status;
67 public function send(): bool
70 $this->
logger->info(
'Membership mail disabled globally.');
75 case self::TYPE_ADMISSION_MEMBER:
98 $this->
getMail()->appendInstallationSignature(
true);
102 case self::TYPE_DISMISS_MEMBER:
119 $this->
getMail()->appendInstallationSignature(
true);
123 case self::TYPE_NOTIFICATION_REGISTRATION:
152 'lso_notification_explanation_admin' 154 $this->
getMail()->appendInstallationSignature(
true);
158 case self::TYPE_UNSUBSCRIBE_MEMBER:
175 $this->
getMail()->appendInstallationSignature(
true);
179 case self::TYPE_NOTIFICATION_UNSUBSCRIBE:
201 'lso_mail_notification_unsub_bod2' 212 'lso_notification_explanation_admin' 215 $this->
getMail()->appendInstallationSignature(
true);
219 case self::TYPE_SUBSCRIBE_MEMBER:
244 $this->
getMail()->appendInstallationSignature(
true);
248 case self::TYPE_NOTIFICATION_REGISTRATION_REQUEST:
277 $this->
getMail()->appendInstallationSignature(
true);
281 case self::TYPE_REFUSED_SUBSCRIPTION_MEMBER:
298 $this->
getMail()->appendInstallationSignature(
true);
302 case self::TYPE_ACCEPTED_SUBSCRIPTION_MEMBER:
322 $this->
getMail()->appendInstallationSignature(
true);
326 case self::TYPE_WAITING_LIST_MEMBER:
345 $this->
getMail()->appendInstallationSignature(
true);
349 case self::TYPE_STATUS_CHANGED:
374 $this->
getMail()->appendInstallationSignature(
true);
384 parent::initLanguage($usr_id);
394 if ($part->isAdmin($usr_id)) {
400 if ($part->isAdmin($usr_id)) {
403 if ($part->isNotificationEnabled($usr_id)) {
416 $this->force_sending_mail ||
417 $this->
settings->get(
'mail_lso_member_notification',
"true") ||
418 in_array($type, $this->permanent_enabled_notifications)
const TYPE_STATUS_CHANGED
static _getInstanceByObjId(int $obj_id)
const TYPE_NOTIFICATION_UNSUBSCRIBE
const TYPE_WAITING_LIST_MEMBER
appendBody(string $a_body)
const TYPE_ACCEPTED_SUBSCRIPTION_MEMBER
const TYPE_DISMISS_MEMBER
sendMail(array $a_rcp, bool $a_parse_recipients=true)
isNotificationTypeEnabled(int $type)
array $permanent_enabled_notifications
Notifications which are not affected by "mail_grp_member_notification" setting because they addresses...
const TYPE_REFUSED_SUBSCRIPTION_MEMBER
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
userToString(int $a_usr_id)
getAdditionalInformation()
Base class for course/group mail notifications.
const TYPE_ADMISSION_MEMBER
const TYPE_BLOCKED_MEMBER
static getSalutation(int $a_usr_id, ?ilLanguage $a_language=null)
forceSendingMail(bool $status)
const TYPE_SUBSCRIBE_MEMBER
getLanguageText(string $a_keyword)
const TYPE_UNBLOCKED_MEMBER
createLearningSequenceStatus(int $usr_id)
getObjectTitle(bool $a_shorten=false)
createPermanentLink(array $a_params=[], string $a_append='')
__construct(Container $dic, ilPlugin $plugin)
const TYPE_NOTIFICATION_REGISTRATION_REQUEST
__construct(ilLogger $logger, ilSetting $settings)
setSubject(string $a_subject)
const TYPE_UNSUBSCRIBE_MEMBER
initLanguage(int $usr_id)
const TYPE_NOTIFICATION_REGISTRATION