4include_once
'./Modules/Forum/interfaces/interface.ilForumNotificationMailData.php';
5include_once
'./Modules/Forum/classes/class.ilForumProperties.php';
6require_once
'Modules/Forum/classes/class.ilForumAuthorInformation.php';
100 return $this->objPost->getThreadId();
108 return $this->objPost->getId();
140 return $this->objPost->getSubject();
148 return $this->objPost->getMessage();
156 return $this->objPost->getDisplayUserId();
164 return $this->objPost->getCreateDate();
172 return $this->objPost->getChangeDate();
179 return $this->objPost->isCensored();
187 return $this->objPost->getCensoredDate();
192 return $this->objPost->getCensorshipComment();
208 return $this->objPost->getUserAlias();
223 return $this->objPost->getImportName();
231 return $this->objPost->getUpdateUserId();
239 if ($this->post_user_name ===
null) {
259 if ($this->update_user_name ===
null) {
315 SELECT thr_subject FROM frm_threads
317 array(
'integer'), array($this->objPost->getThreadId()));
320 $this->thread_title =
$row[
'thr_subject'];
331 SELECT top_pk, top_name, frm_settings.anonymized FROM frm_data
332 INNER JOIN frm_settings ON top_frm_fk = frm_settings.obj_id
333 WHERE top_frm_fk = %s',
334 array(
'integer'), array($this->
getObjId()));
337 $this->forum_id =
$row[
'top_pk'];
338 $this->forum_title =
$row[
'top_name'];
339 $this->is_anonymized = (bool)
$row[
'anonymized'];
347 if(ilForumProperties::isSendAttachmentsByMailEnabled())
349 require_once
'Modules/Forum/classes/class.ilFileDataForum.php';
351 $filesOfPost = $fileDataForum->getFilesOfPost();
353 require_once
'Services/Mail/classes/class.ilFileDataMail.php';
356 foreach($filesOfPost as $attachment)
358 $this->attachments[$attachment[
'path']] = $attachment[
'name'];
359 $fileDataMail->copyAttachmentFile($attachment[
'path'], $attachment[
'name']);
372 SELECT frm_notification.user_id FROM frm_notification, frm_data
373 WHERE frm_data.top_pk = %s
374 AND frm_notification.frm_id = frm_data.top_frm_fk
375 AND frm_notification.user_id <> %s
376 GROUP BY frm_notification.user_id',
377 array(
'integer',
'integer'),
378 array($this->
getForumId(), $ilUser->getId()));
386 foreach((array)$frm_references as
$ref_id)
388 if($ilAccess->checkAccessOfUser(
$row[
'user_id'],
'read',
'',
$ref_id))
390 $rcps[] =
$row[
'user_id'];
395 return array_unique($rcps);
407 SELECT user_id FROM frm_notification
410 array(
'integer',
'integer'),
419 foreach((array)$frm_references as
$ref_id)
421 if($ilAccess->checkAccessOfUser(
$row[
'user_id'],
'read',
'',
$ref_id))
423 $rcps[] =
$row[
'user_id'];
435 include_once
'./Modules/Forum/classes/class.ilForumPost.php';
436 $parent_objPost =
new ilForumPost($this->objPost->getParentId());
439 $rcps[] = $parent_objPost->getPosAuthorId();
449 include_once
'./Modules/Forum/classes/class.ilForum.php';
An exception for terminatinating execution or to throw for unit testing.
This class handles all operations on files for the forum object.
This class handles all operations on files (attachments) in directory ilias_data/mail.
static _getModerators($a_ref_id)
get all users assigned to local role il_frm_moderator_<frm_ref_id> (static)
Class ilObjForumNotificationDataProvider.
getPostAnsweredRecipients()
getPublicUserInformation(ilForumAuthorInformation $authorinfo)
setPosAuthorId($pos_author_id)
getPostUserName(\ilLanguage $user_lang)
string
getThreadNotificationRecipients()
getForumNotificationRecipients()
getPostUpdateUserName(\ilLanguage $user_lang)
string
getPostActivationRecipients()
__construct(ilForumPost $objPost, $ref_id)
static _lookupObjId($a_id)
static _getAllReferences($a_id)
get all reference ids of object
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
Interface ilForumNotificationMailData.