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;
77 $GLOBALS[
'DIC']->logger()->grp()->info(
'Membership mail disabled globally.');
83 case self::TYPE_ADMISSION_MEMBER:
100 $this->
getMail()->appendInstallationSignature(
true);
102 $this->
sendMail(array($rcp), array(
'system'));
106 case self::TYPE_DISMISS_MEMBER:
119 $this->
getMail()->appendInstallationSignature(
true);
120 $this->
sendMail(array($rcp), array(
'system'));
125 case self::TYPE_NOTIFICATION_REGISTRATION:
152 $this->
getMail()->appendInstallationSignature(
true);
153 $this->
sendMail(array($rcp), array(
'system'));
157 case self::TYPE_UNSUBSCRIBE_MEMBER:
170 $this->
getMail()->appendInstallationSignature(
true);
171 $this->
sendMail(array($rcp), array(
'system'));
175 case self::TYPE_NOTIFICATION_UNSUBSCRIBE:
202 $this->
getMail()->appendInstallationSignature(
true);
203 $this->
sendMail(array($rcp), array(
'system'));
208 case self::TYPE_SUBSCRIBE_MEMBER:
226 $this->
getMail()->appendInstallationSignature(
true);
228 $this->
sendMail(array($rcp), array(
'system'));
233 case self::TYPE_NOTIFICATION_REGISTRATION_REQUEST:
260 $this->
getMail()->appendInstallationSignature(
true);
261 $this->
sendMail(array($rcp), array(
'system'));
265 case self::TYPE_REFUSED_SUBSCRIPTION_MEMBER:
279 $this->
getMail()->appendInstallationSignature(
true);
281 $this->
sendMail(array($rcp), array(
'system'));
285 case self::TYPE_ACCEPTED_SUBSCRIPTION_MEMBER:
302 $this->
getMail()->appendInstallationSignature(
true);
304 $this->
sendMail(array($rcp), array(
'system'));
308 case self::TYPE_WAITING_LIST_MEMBER:
327 $this->
getMail()->appendInstallationSignature(
true);
328 $this->
sendMail(array($rcp), array(
'system'));
333 case self::TYPE_STATUS_CHANGED:
354 $this->
getMail()->appendInstallationSignature(
true);
356 $this->
sendMail(array($rcp), array(
'system'));
371 parent::initLanguage($a_usr_id);
388 if ($part->isAdmin($a_usr_id)) {
394 if ($part->isAdmin($a_usr_id)) {
397 if ($part->isNotificationEnabled($a_usr_id)) {
420 $this->force_sending_mail ||
421 $ilSetting->get(
'mail_grp_member_notification',
true) ||
422 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)
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.
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
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
static getSalutation($a_usr_id, ilLanguage $a_language=null)