145 $this->obj_id = $row[
'obj_id'];
146 $this->ref_id = $row[
'ref_id'];
148 $this->thread_id = $row[
'thread_id'];
149 $this->thread_title = $row[
'thr_subject'];
151 $this->forum_id = $row[
'pos_top_fk'];
152 $this->forum_title = $row[
'top_name'];
154 $this->post_id = $row[
'pos_pk'];
155 $this->post_title = $row[
'pos_subject'];
156 $this->post_message = $row[
'pos_message'];
157 $this->post_date = $row[
'pos_date'];
158 $this->post_update = $row[
'pos_update'];
159 $this->post_update_user_id = $row[
'update_user'];
161 $this->post_censored = $row[
'pos_cens'];
162 $this->post_censored_date = $row[
'pos_cens_date'];
163 $this->post_censored_comment = $row[
'pos_cens_com'];
165 $this->pos_usr_alias = $row[
'pos_usr_alias'];
166 $this->pos_display_user_id = $row[
'pos_display_user_id'];
167 $this->pos_author_id = $row[
'pos_author_id'];
169 $this->import_name = strlen($row[
'import_name']) ? $row[
'import_name'] :
'';
176 if (isset($row[
'deleted_by'])) {
178 $this->deleted_by = $row[
'deleted_by'];
182 $this->deleted_by = $DIC->user()->getLogin();
204 $filesOfPost = $fileDataForum->getFilesOfPost();
206 foreach ($filesOfPost as $attachment) {
207 $this->attachments[] = $attachment[
'name'];
217 $this->cron_recipients[] = (int) $user_id;
427 if ($this->post_user_name === null) {
445 if ($this->update_user_name === null) {
496 $cacheKey = $this->notificationCache->createKeyByValues(array(
499 (
int) $displayUserId,
504 if (
false === $this->notificationCache->exists($cacheKey)) {
514 $this->notificationCache->store($cacheKey, $authorInformation);
517 return $this->notificationCache->fetch($cacheKey);
getPublicUserInformation(ilForumAuthorInformation $authorinfo)
getPostUpdateUserName(\ilLanguage $user_lang)
string
Class ilForumCronNotificationDataProvider.
setPosAuthorId($pos_author_id)
setPostUpdateUserId($post_update_user_id)
getPostUserName(\ilLanguage $user_lang)
string
static isSendAttachmentsByMailEnabled()
Class ilForumNotificationCache.
__construct($row, ilForumNotificationCache $notificationCache=null)
Interface ilForumNotificationMailData.
setNotificationType($notification_type)
This class handles all operations on files for the forum object.
getAuthorInformation(\ilLanguage $lng, int $authorUsrId, int $displayUserId, string $usrAlias, string $importName)
static $authorInformationCache