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
63 $this->mail = $this->mail->withContextParameters([
80 $this->force_sending_mail = $a_status;
91 in_array($this->
getType(), array(self::TYPE_ADMISSION_MEMBER))) {
94 if ($obj->getAutoNotification() ==
false) {
95 if (!$this->force_sending_mail) {
109 case self::TYPE_ADMISSION_MEMBER:
126 $this->
getMail()->appendInstallationSignature(
true);
133 case self::TYPE_ACCEPTED_SUBSCRIPTION_MEMBER:
150 $this->
getMail()->appendInstallationSignature(
true);
156 case self::TYPE_REFUSED_SUBSCRIPTION_MEMBER:
170 $this->
getMail()->appendInstallationSignature(
true);
176 case self::TYPE_STATUS_CHANGED:
197 $this->
getMail()->appendInstallationSignature(
true);
204 case self::TYPE_DISMISS_MEMBER:
217 $this->
getMail()->appendInstallationSignature(
true);
223 case self::TYPE_BLOCKED_MEMBER:
236 $this->
getMail()->appendInstallationSignature(
true);
241 case self::TYPE_UNBLOCKED_MEMBER:
259 $this->
getMail()->appendInstallationSignature(
true);
265 case self::TYPE_NOTIFICATION_REGISTRATION:
292 $this->
getMail()->appendInstallationSignature(
true);
297 case self::TYPE_NOTIFICATION_REGISTRATION_REQUEST:
324 $this->
getMail()->appendInstallationSignature(
true);
329 case self::TYPE_NOTIFICATION_UNSUBSCRIBE:
356 $this->
getMail()->appendInstallationSignature(
true);
361 case self::TYPE_UNSUBSCRIBE_MEMBER:
375 $this->
getMail()->appendInstallationSignature(
true);
380 case self::TYPE_SUBSCRIBE_MEMBER:
398 $this->
getMail()->appendInstallationSignature(
true);
404 case self::TYPE_WAITING_LIST_MEMBER:
423 $this->
getMail()->appendInstallationSignature(
true);
438 parent::initLanguage($a_usr_id);
455 if ($part->isAdmin($a_usr_id)) {
457 } elseif ($part->isTutor($a_usr_id)) {
463 if ($part->isAdmin($a_usr_id) or $part->isTutor($a_usr_id)) {
466 if ($part->isNotificationEnabled($a_usr_id)) {
474 if ($part->isBlocked($a_usr_id)) {
483 if ($part->hasPassed($a_usr_id)) {
505 $this->force_sending_mail ||
506 $ilSetting->get(
'mail_crs_member_notification',
true) ||
507 in_array($a_type, $this->permanent_enabled_notifications);
getType()
Get notification type.
const TYPE_NOTIFICATION_UNSUBSCRIBE
const TYPE_ADMISSION_MEMBER
const TYPE_STATUS_CHANGED
const TYPE_BLOCKED_MEMBER
const TYPE_ACCEPTED_SUBSCRIPTION_MEMBER
const TYPE_WAITING_LIST_MEMBER
const TYPE_DISMISS_MEMBER
const PROP_CONTEXT_SUBJECT_PREFIX
const TYPE_REFUSED_SUBSCRIPTION_MEMBER
getLanguageText($a_keyword)
const TYPE_NOTIFICATION_REGISTRATION_REQUEST
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
const TYPE_UNBLOCKED_MEMBER
forceSendingMail($a_status)
Force sending mail independent from global setting.
initLanguage($a_usr_id)
Add language module crs.
sendMail(array $a_rcp, $a_parse_recipients=true)
getAdditionalInformation()
const EXTERNAL_MAIL_PREFIX
Base class for course/group mail notifications.
static _lookupObjId($a_id)
getObjectTitle($a_shorten=false)
createCourseStatus($a_usr_id)
Get course status body.
const TYPE_NOTIFICATION_REGISTRATION
getRecipients()
get array of recipients
createPermanentLink($a_params=array(), $a_append='')
__construct(Container $dic, ilPlugin $plugin)
send()
Send notifications.
isNotificationTypeEnabled($a_type)
get setting "mail_crs_member_notification" and excludes types which are not affected by this setting ...
appendBody($a_body)
Append body text.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
$permanent_enabled_notifications
Notifications which are not affected by "mail_crs_member_notification" setting because they addresses...
const TYPE_UNSUBSCRIBE_MEMBER
const TYPE_SUBSCRIBE_MEMBER
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.
static getSalutation($a_usr_id, ilLanguage $a_language=null)