12 protected $just_notified =
false;
14 public function notifyCreation(
int $obj_id,
string $additional_message = null) : void
17 $this->just_notified =
true;
20 public function notifyUpdate(
int $obj_id,
string $additional_message = null) : void
22 if (!$this->just_notified) {
24 $this->just_notified =
true;
28 protected function addNewsNotification(
int $obj_id,
string $a_lang_var,
string $description = null) : void
36 $news_item->setContext($obj_id,
'file');
38 $news_item->setTitle($a_lang_var);
39 $news_item->setContentIsLangVar(
true);
40 if ($description && $description !==
'') {
41 $news_item->setContent(
"<p>" . $description .
"</p>");
43 $news_item->setUserId($DIC->user()->getId());
addNewsNotification(int $obj_id, string $a_lang_var, string $description=null)
notifyUpdate(int $obj_id, string $additional_message=null)
notifyCreation(int $obj_id, string $additional_message=null)