4 include_once
'./Modules/Forum/interfaces/interface.ilForumNotificationMailData.php';
5 include_once
'./Modules/Forum/classes/class.ilForumProperties.php';
6 require_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',
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']);
371 $res = $ilDB->queryf(
' 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'),
383 while(
$row = $ilDB->fetchAssoc(
$res))
388 if($ilAccess->checkAccessOfUser(
$row[
'user_id'],
'read',
'',
$ref_id))
390 $rcps[] =
$row[
'user_id'];
395 return array_unique($rcps);
406 $res = $ilDB->queryf(
' 407 SELECT user_id FROM frm_notification 410 array(
'integer',
'integer'),
416 while(
$row = $ilDB->fetchAssoc(
$res))
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());
449 include_once
'./Modules/Forum/classes/class.ilForum.php';
getForumNotificationRecipients()
Class ilObjForumNotificationDataProvider.
This class handles all operations on files (attachments) in directory ilias_data/mail.
getPostUpdateUserName(\ilLanguage $user_lang)
string
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static _getAllReferences($a_id)
get all reference ids of object
getPostUserName(\ilLanguage $user_lang)
string
getThreadNotificationRecipients()
static _lookupObjId($a_id)
getPublicUserInformation(ilForumAuthorInformation $authorinfo)
getPostAnsweredRecipients()
Create styles array
The data for the language used.
Interface ilForumNotificationMailData.
getPostActivationRecipients()
This class handles all operations on files for the forum object.
setPosAuthorId($pos_author_id)
static _getModerators($a_ref_id)
get all users assigned to local role il_frm_moderator_<frm_ref_id> (static)
__construct(ilForumPost $objPost, $ref_id)