120 : void {
121 $ntf = new \ilSystemNotification($in_wsp);
122 $ntf->setLangModules(array("blog"));
123 $ntf->setRefId($blog_node_id);
124 $ntf->setChangedByUserId($this->current_user_id);
125 $ntf->setSubjectLangId('blog_change_notification_subject');
126 $ntf->setIntroductionLangId('blog_change_notification_body_' . $action);
127 $ntf->addAdditionalInfo('blog_posting', $posting->getTitle());
128
130 $ntf->addAdditionalInfo(
'comment',
$comment,
true);
131 }
132
133 $ntf->setGotoLangId('blog_change_notification_link');
134 $ntf->setReasonLangId('blog_change_notification_reason');
135
136 $abstract = $posting->getNotificationAbstract();
137 if ($abstract) {
138 $ntf->addAdditionalInfo('content', $abstract, true);
139 }
140
141 $notified = $ntf->sendMailAndReturnRecipients(
142 $users,
143 "_" . $posting->getId(),
144 ($admin_only ? "write" : "read")
145 );
146
147 if (count($notified)) {
150 $posting->getBlogId(),
151 $notified,
152 $posting->getId()
153 );
154 }
155 }