24 include_once(
"./Services/News/classes/class.ilNewsItem.php");
25 include_once(
"./Services/Feeds/classes/class.ilFeedItem.php");
26 include_once(
"./Services/Feeds/classes/class.ilFeedWriter.php");
49 if ($a_user_id ==
"" || $a_hash ==
"")
55 if (!$news_set->get(
"enable_rss_for_internal"))
62 include_once(
"./Services/News/classes/class.ilNewsItem.php");
72 if ($ilSetting->get(
'short_inst_name') !=
"")
92 if ($obj_type ==
"mcst")
94 include_once(
"./Modules/MediaCast/classes/class.ilObjMediaCastAccess.php");
104 ($item[
"context_obj_type"], $item[
"title"], $item[
"content_is_lang_var"],
105 $item[
"agg_ref_id"], $item[
"aggregation"]);
109 $cont_loc->addContextItems($item[
"ref_id"],
true);
110 $cont_loc->setTextOnly(
true);
111 $loc =
"[".$cont_loc->getHTML().
"]";
117 $content = $this->
prepareStr(nl2br($item[
"content"]));
118 $feed_item->setDescription($content);
119 $feed_item->setLink(ILIAS_HTTP_PATH.
"/goto.php?client_id=".CLIENT_ID.
120 "&target=".$item[
"context_obj_type"].
"_".$item[
"ref_id"]);
121 $feed_item->setAbout($feed_item->getLink().
"&il_about_feed=".$item[
"id"]);