25    protected bool $just_notified = 
false;
 
   27    public function notifyCreation(
int $obj_id, 
string $additional_message = 
null): void
 
   30        $this->just_notified = 
true;
 
   33    public function notifyUpdate(
int $obj_id, 
string $additional_message = 
null): void
 
   35        if (!$this->just_notified) {
 
   37            $this->just_notified = 
true;
 
   41    protected function addNewsNotification(
int $obj_id, 
string $a_lang_var, 
string $description = 
null): void
 
   49        $news_item->setContext($obj_id, 
'file');
 
   51        $news_item->setTitle($a_lang_var);
 
   52        $news_item->setContentIsLangVar(
true);
 
   53        if ($description && $description !== 
'') {
 
   54            $news_item->setContent(
"<p>" . $description . 
"</p>");
 
   56        $news_item->setUserId(
$DIC->user()->getId());
 
const NEWS_NOTICE
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
A news item can be created by different sources.
 
addNewsNotification(int $obj_id, string $a_lang_var, string $description=null)
 
trait ilObjFileNews
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
notifyCreation(int $obj_id, string $additional_message=null)
 
notifyUpdate(int $obj_id, string $additional_message=null)