4include_once
'./Services/Mail/classes/class.ilMailNotification.php';
41 self::TYPE_NOTIFICATION_REGISTRATION,
42 self::TYPE_NOTIFICATION_REGISTRATION_REQUEST,
43 self::TYPE_NOTIFICATION_UNSUBSCRIBE
65 $this->mail = $this->mail->withContextParameters([
82 $this->force_sending_mail = $a_status;
95 $logger =
$DIC->logger()->grp();
98 $logger->info(
'Membership mail disabled globally.');
103 $this->
getType() == self::TYPE_ADMISSION_MEMBER
107 $logger->warning(
'Refid: ' . $this->
getRefId() .
' is not of type grp.');
110 if (!$obj->getAutoNotification()) {
111 if (!$this->force_sending_mail) {
112 $logger->info(
'Sending welcome mail disabled locally.');
138 $this->
getMail()->appendInstallationSignature(
true);
157 $this->
getMail()->appendInstallationSignature(
true);
190 $this->
getMail()->appendInstallationSignature(
true);
208 $this->
getMail()->appendInstallationSignature(
true);
240 $this->
getMail()->appendInstallationSignature(
true);
264 $this->
getMail()->appendInstallationSignature(
true);
298 $this->
getMail()->appendInstallationSignature(
true);
317 $this->
getMail()->appendInstallationSignature(
true);
340 $this->
getMail()->appendInstallationSignature(
true);
365 $this->
getMail()->appendInstallationSignature(
true);
392 $this->
getMail()->appendInstallationSignature(
true);
409 parent::initLanguage($a_usr_id);
426 if ($part->isAdmin($a_usr_id)) {
432 if ($part->isAdmin($a_usr_id)) {
435 if ($part->isNotificationEnabled($a_usr_id)) {
458 $this->force_sending_mail ||
459 $ilSetting->get(
'mail_grp_member_notification',
true) ||
460 in_array($a_type, $this->permanent_enabled_notifications);
An exception for terminatinating execution or to throw for unit testing.
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.
const TYPE_ACCEPTED_SUBSCRIPTION_MEMBER
const TYPE_UNSUBSCRIBE_MEMBER
const TYPE_NOTIFICATION_UNSUBSCRIBE
const TYPE_ADMISSION_MEMBER
initLanguage($a_usr_id)
Add language module crs.
isNotificationTypeEnabled($a_type)
get setting "mail_grp_member_notification" and excludes types which are not affected by this setting ...
const TYPE_BLOCKED_MEMBER
const TYPE_REFUSED_SUBSCRIPTION_MEMBER
createGroupStatus($a_usr_id)
Get course status body.
const TYPE_NOTIFICATION_REGISTRATION_REQUEST
send()
Send notifications.
$permanent_enabled_notifications
Notifications which are not affected by "mail_grp_member_notification" setting because they addresses...
const TYPE_NOTIFICATION_REGISTRATION
const TYPE_DISMISS_MEMBER
const TYPE_SUBSCRIBE_MEMBER
const TYPE_UNBLOCKED_MEMBER
forceSendingMail($a_status)
Force sending mail independent from global setting.
const TYPE_STATUS_CHANGED
const TYPE_WAITING_LIST_MEMBER
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
Base class for course/group mail notifications.
appendBody($a_body)
Append body text.
getType()
Get notification type.
getAdditionalInformation()
sendMail(array $a_rcp, $a_parse_recipients=true)
getRecipients()
get array of recipients
getObjectTitle($a_shorten=false)
getLanguageText($a_keyword)
createPermanentLink($a_params=array(), $a_append='')
static getSalutation($a_usr_id, ilLanguage $a_language=null)
const PROP_CONTEXT_SUBJECT_PREFIX
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
const EXTERNAL_MAIL_PREFIX
static _lookupObjId($a_id)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc