4 include_once
'./Services/Mail/classes/class.ilMailNotification.php';
41 self::TYPE_NOTIFICATION_REGISTRATION,
42 self::TYPE_NOTIFICATION_REGISTRATION_REQUEST,
43 self::TYPE_NOTIFICATION_UNSUBSCRIBE
56 parent::__construct();
65 $this->force_sending_mail = $a_status;
78 $GLOBALS[
'ilLog']->write(__METHOD__.
': Membership mail disabled globally.');
85 case self::TYPE_ADMISSION_MEMBER:
103 $this->
getMail()->appendInstallationSignature(
true);
109 case self::TYPE_DISMISS_MEMBER:
123 $this->
getMail()->appendInstallationSignature(
true);
129 case self::TYPE_NOTIFICATION_REGISTRATION:
156 $this->
getMail()->appendInstallationSignature(
true);
161 case self::TYPE_UNSUBSCRIBE_MEMBER:
175 $this->
getMail()->appendInstallationSignature(
true);
180 case self::TYPE_NOTIFICATION_UNSUBSCRIBE:
207 $this->
getMail()->appendInstallationSignature(
true);
213 case self::TYPE_SUBSCRIBE_MEMBER:
232 $this->
getMail()->appendInstallationSignature(
true);
239 case self::TYPE_NOTIFICATION_REGISTRATION_REQUEST:
266 $this->
getMail()->appendInstallationSignature(
true);
271 case self::TYPE_REFUSED_SUBSCRIPTION_MEMBER:
286 $this->
getMail()->appendInstallationSignature(
true);
292 case self::TYPE_ACCEPTED_SUBSCRIPTION_MEMBER:
310 $this->
getMail()->appendInstallationSignature(
true);
316 case self::TYPE_WAITING_LIST_MEMBER:
335 $this->
getMail()->appendInstallationSignature(
true);
341 case self::TYPE_STATUS_CHANGED:
363 $this->
getMail()->appendInstallationSignature(
true);
380 parent::initLanguage($a_usr_id);
397 if($part->isAdmin($a_usr_id))
407 if($part->isAdmin($a_usr_id))
411 if($part->isNotificationEnabled($a_usr_id))
435 $this->force_sending_mail ||
436 $ilSetting->get(
'mail_grp_member_notification',
true) ||
437 in_array(
$a_type, $this->permanent_enabled_notifications);
isNotificationTypeEnabled($a_type)
get setting "mail_grp_member_notification" and excludes types which are not affected by this setting ...
getType()
Get notification type.
forceSendingMail($a_status)
Force sending mail independent from global setting.
const TYPE_NOTIFICATION_REGISTRATION_REQUEST
const TYPE_NOTIFICATION_UNSUBSCRIBE
const TYPE_ACCEPTED_SUBSCRIPTION_MEMBER
const TYPE_STATUS_CHANGED
const TYPE_SUBSCRIBE_MEMBER
const TYPE_DISMISS_MEMBER
getLanguageText($a_keyword)
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
const TYPE_BLOCKED_MEMBER
send()
Send notifications.
createGroupStatus($a_usr_id)
Get course status body.
const TYPE_UNBLOCKED_MEMBER
const TYPE_NOTIFICATION_REGISTRATION
getAdditionalInformation()
const TYPE_WAITING_LIST_MEMBER
Base class for course/group mail notifications.
getObjectTitle($a_shorten=false)
const TYPE_UNSUBSCRIBE_MEMBER
initLanguage($a_usr_id)
Add language module crs.
$permanent_enabled_notifications
Notifications which are not affected by "mail_grp_member_notification" setting because they addresses...
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
Create styles array
The data for the language used.
const TYPE_REFUSED_SUBSCRIPTION_MEMBER
sendMail(array $a_rcp, $a_type, $a_parse_recipients=true)
getRecipients()
get array of recipients
createPermanentLink($a_params=array(), $a_append='')
appendBody($a_body)
Append body text.
const TYPE_ADMISSION_MEMBER