30         ?
int $a_userid = null,
    31         string $a_purpose = null
    36         $this->
lng = $DIC->language();
    38         $lng = $DIC->language();
    47         if (!$news_set->get(
"enable_rss_for_internal")) {
    61         if (
$ilSetting->get(
'short_inst_name') != 
"") {
    66                 $this->
prepareStr($loc . 
" " . $obj_title . ($a_purpose ? 
" - " . $a_purpose : 
"")));
    71         if ($obj_type == 
"mcst") {
    76                 $feed_item->setTitle($lng->
txt(
"mcst_media_cast_not_online"));
    77                 $feed_item->setDescription($lng->
txt(
"mcst_media_cast_not_online_text"));
    78                 $feed_item->setLink(ILIAS_HTTP_PATH . 
"/goto.php?client_id=" . 
CLIENT_ID .
    79                     "&target=mcst_" . $a_ref_id);
    89         $news_item->setContextObjId($obj_id);
    90         $news_item->setContextObjType($obj_type);
    91         $items = $news_item->getNewsForRefId($a_ref_id, 
true, 
false, $rss_period, 
true);
    94         foreach (
$items as $item) {
    97             if ($a_purpose != null && $obj_type == 
"mcst") {
   110                 $item[
"context_obj_type"],
   112                 $item[
"content_is_lang_var"],
   113                 (
int) ($item[
"agg_ref_id"] ?? 0),
   114                 $item[
"aggregation"] ?? []
   119             if ($news_set->get(
"rss_title_format") == 
"news_obj") {
   129             $feed_item->setDescription($this->
prepareStr(nl2br(
   131                     $item[
"context_obj_type"],
   133                     $item[
"content_text_is_lang_var"]
   138             if ($item[
"context_obj_type"] == 
"lm" && $item[
"context_sub_obj_type"] == 
"pg"   139                 && $item[
"context_sub_obj_id"] > 0) {
   140                 $feed_item->setLink(ILIAS_HTTP_PATH . 
"/goto.php?client_id=" . 
CLIENT_ID .
   141                     "&target=pg_" . $item[
"context_sub_obj_id"] . 
"_" . $item[
"ref_id"]);
   142             } elseif ($item[
"context_obj_type"] == 
"wiki" && $item[
"context_sub_obj_type"] == 
"wpg"   143                 && $item[
"context_sub_obj_id"] > 0) {
   145                 $feed_item->setLink(ILIAS_HTTP_PATH . 
"/goto.php?client_id=" . 
CLIENT_ID .
   146                     "&target=" . $item[
"context_obj_type"] . 
"_" . $item[
"ref_id"] . 
"_" . $wptitle);
   147             } elseif ($item[
"context_obj_type"] == 
"frm" && $item[
"context_sub_obj_type"] == 
"pos"   148                 && $item[
"context_sub_obj_id"] > 0) {
   151                 if ($thread_id > 0) {
   152                     $feed_item->setLink(ILIAS_HTTP_PATH . 
"/goto.php?client_id=" . 
CLIENT_ID .
   153                         "&target=" . $item[
"context_obj_type"] . 
"_" . $item[
"ref_id"] . 
"_" . $thread_id . 
"_" . $item[
"context_sub_obj_id"]);
   155                     $feed_item->setLink(ILIAS_HTTP_PATH . 
"/goto.php?client_id=" . 
CLIENT_ID .
   156                         "&target=" . $item[
"context_obj_type"] . 
"_" . $item[
"ref_id"]);
   159                 $feed_item->setLink(ILIAS_HTTP_PATH . 
"/goto.php?client_id=" . 
CLIENT_ID .
   160                     "&target=" . $item[
"context_obj_type"] . 
"_" . $item[
"ref_id"]);
   165             $feed_item->setAbout($feed_item->getLink() . 
"&il_about_feed=" . $item[
"id"]);
   166             $feed_item->setDate($item[
"creation_date"]);
   172                 if ($obj_type == 
"mcst") {
   178                 if ($go_on && isset($mob)) {
   182                     if (is_file($file)) {
   183                         $size = filesize($file);
   185                     $feed_item->setEnclosureUrl(
$url);
   186                     $feed_item->setEnclosureType((isset($mob[
"format"])) ? $mob[
"format"] : 
"audio/mpeg");
   187                     $feed_item->setEnclosureLength($size);
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setChannelTitle(string $a_title)
 
static determineNewsContent(string $a_context_obj_type, string $a_content, bool $a_is_lang_var, ?ilLanguage $lng=null)
Determine new content. 
 
static _lookupRSSPeriod()
 
addItem(ilFeedItem $a_item)
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
static lookupTitle(int $a_page_id, string $lang="-")
 
static setPrivateFeedId(int $a_userId)
 
loadLanguageModule(string $a_module)
Load language module. 
 
static _lookupObjId(int $ref_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _exists(int $id, bool $reference=false, ?string $type=null)
checks if an object exists in object_data 
 
static _lookup(string $a_type, string $a_setting, int $a_user=0, int $a_block_id=0)
Lookup setting from database. 
 
static _lookupTitle(int $obj_id)
 
static determineNewsTitle(string $a_context_obj_type, string $a_title, bool $a_content_is_lang_var, int $a_agg_ref_id=0, array $a_aggregation=[], ?ilLanguage $lng=null)
Determine title for news item entry. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setChannelLink(string $a_link)
 
static _getThreadForPosting(int $a_pos_id)
 
prepareStr(string $a_str)
 
static makeUrlTitle(string $a_par)
 
A news item can be created by different sources. 
 
__construct(Container $dic, ilPlugin $plugin)
 
__construct(int $a_ref_id, ?int $a_userid=null, string $a_purpose=null)
 
getContextPath(int $a_ref_id)
 
static _lookupType(int $id, bool $reference=false)
 
setChannelAbout(string $a_ab)