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';
153 $this->obj_id =
$row[
'obj_id'];
154 $this->ref_id =
$row[
'ref_id'];
156 $this->thread_id =
$row[
'thread_id'];
157 $this->thread_title =
$row[
'thr_subject'];
159 $this->forum_id =
$row[
'pos_top_fk'];
160 $this->forum_title =
$row[
'top_name'];
162 $this->post_id =
$row[
'pos_pk'];
163 $this->post_title =
$row[
'pos_subject'];
164 $this->post_message =
$row[
'pos_message'];
165 $this->post_date =
$row[
'pos_date'];
166 $this->post_update =
$row[
'pos_update'];
167 $this->post_update_user_id =
$row[
'update_user'];
169 $this->post_censored =
$row[
'pos_cens'];
170 $this->post_censored_date =
$row[
'pos_cens_date'];
171 $this->post_censored_comment =
$row[
'pos_cens_com'];
173 $this->pos_usr_alias =
$row[
'pos_usr_alias'];
174 $this->pos_display_user_id =
$row[
'pos_display_user_id'];
175 $this->pos_author_id =
$row[
'pos_author_id'];
177 $this->import_name = strlen(
$row[
'import_name']) ?
$row[
'import_name'] :
'';
179 if (isset(
$row[
'deleted_by'])) {
181 $this->deleted_by =
$row[
'deleted_by'];
185 $this->deleted_by = $DIC->user()->getLogin();
206 include_once
"./Modules/Forum/classes/class.ilFileDataForum.php";
208 $filesOfPost = $fileDataForum->getFilesOfPost();
210 foreach ($filesOfPost as $attachment) {
211 $this->attachments[] = $attachment[
'name'];
221 $this->cron_recipients[] = (int) $user_id;
444 $cacheKey = md5(implode(
'|',
array(
447 (
int) $displayUserId,
452 if (!array_key_exists($cacheKey, self::$authorInformationCache)) {
462 self::$authorInformationCache[$cacheKey] = $authorInformation;
465 return self::$authorInformationCache[$cacheKey];
473 if (null === $this->post_user_name) {
491 if ($this->update_user_name === null) {
getPublicUserInformation(ilForumAuthorInformation $authorinfo)
getPostUpdateUserName(\ilLanguage $user_lang)
string
setDeletedBy($deleted_by)
Class ilForumCronNotificationDataProvider.
setPosAuthorId($pos_author_id)
setPostUpdateUserId($post_update_user_id)
getPostUserName(\ilLanguage $user_lang)
string
getAuthorInformation(\ilLanguage $lng, $authorUsrId, $displayUserId, $usrAlias, $importName)
static isSendAttachmentsByMailEnabled()
Create styles array
The data for the language used.
Interface ilForumNotificationMailData.
setNotificationType($notification_type)
This class handles all operations on files for the forum object.
static $authorInformationCache