4include_once
'./Modules/Forum/interfaces/interface.ilForumNotificationMailData.php';
88 return $this->objPost->getThreadId();
96 return $this->objPost->getId();
128 return $this->objPost->getSubject();
136 return $this->objPost->getMessage();
144 return $this->objPost->getDisplayUserId();
153 if($this->objPost->getDisplayUserId())
157 else if(strlen($this->objPost->getUserAlias()))
159 $this->post_user_name = $this->objPost->getUserAlias() .
' (' . $user_lang->txt(
'frm_pseudonym') .
')';
162 if($this->post_user_name ==
'')
164 $this->post_user_name = $user_lang->txt(
'forums_anonymous');
175 return $this->objPost->getCreateDate();
183 return $this->objPost->getChangeDate();
192 if($this->objPost->getUpdateUserId() > 0)
197 if($this->objPost->getDisplayUserId() == 0 && $this->objPost->getPosAuthorId() == $this->objPost->getUpdateUserId())
199 if(strlen($this->objPost->getUserAlias()))
201 $this->post_user_name = $this->objPost->getUserAlias() .
' (' . $user_lang->txt(
'frm_pseudonym') .
')';
204 if($this->post_user_name ==
'')
206 $this->post_user_name = $user_lang->txt(
'forums_anonymous');
218 return $this->objPost->isCensored();
226 return $this->objPost->getCensoredDate();
231 return $this->objPost->getCensorshipComment();
247 return $this->objPost->getUserAlias();
268 SELECT thr_subject FROM frm_threads
270 array(
'integer'), array($this->objPost->getThreadId()));
273 $this->thread_title =
$row[
'thr_subject'];
284 SELECT top_pk, top_name FROM frm_data
285 WHERE top_frm_fk = %s',
286 array(
'integer'), array($this->
getObjId()));
289 $this->forum_id =
$row[
'top_pk'];
290 $this->forum_title =
$row[
'top_name'];
298 require_once
'Modules/Forum/classes/class.ilFileDataForum.php';
300 $filesOfPost = $fileDataForum->getFilesOfPost();
302 foreach($filesOfPost as $attachment)
304 $this->attachments[] = $attachment[
'name'];
316 SELECT frm_notification.user_id FROM frm_notification, frm_data
317 WHERE frm_data.top_pk = %s
318 AND frm_notification.frm_id = frm_data.top_frm_fk
319 AND frm_notification.user_id <> %s
320 GROUP BY frm_notification.user_id',
321 array(
'integer',
'integer'),
322 array($this->
getForumId(), $ilUser->getId()));
330 foreach((array)$frm_references as
$ref_id)
332 if($ilAccess->checkAccessOfUser(
$row[
'user_id'],
'read',
'',
$ref_id))
334 $rcps[] =
$row[
'user_id'];
340 return array_unique($rcps);
352 SELECT user_id FROM frm_notification
355 array(
'integer',
'integer'),
364 foreach((array)$frm_references as
$ref_id)
366 if($ilAccess->checkAccessOfUser(
$row[
'user_id'],
'read',
'',
$ref_id))
368 $rcps[] =
$row[
'user_id'];
380 include_once
'./Modules/Forum/classes/class.ilForumPost.php';
381 $parent_objPost =
new ilForumPost($this->objPost->getParentId());
384 $rcps[] = $parent_objPost->getPosAuthorId();
394 include_once
'./Modules/Forum/classes/class.ilForum.php';
This class handles all operations on files for the forum object.
_getModerators($a_ref_id)
get all users assigned to local role il_frm_moderator_<frm_ref_id> (static)
Class ilObjForumNotificationDataProvider.
getPostAnsweredRecipients()
setPosAuthorId($pos_author_id)
getPostUserName($user_lang)
getThreadNotificationRecipients()
getForumNotificationRecipients()
getPostActivationRecipients()
getPostUpdateUserName($user_lang)
__construct(ilForumPost $objPost, $ref_id)
static _lookupLogin($a_user_id)
lookup login
static _lookupObjId($a_id)
static _getAllReferences($a_id)
get all reference ids of object
Interface ilForumNotificationMailData.