5 include_once(
"./Services/News/classes/class.ilNewsItem.php");
6 include_once(
"./Services/Feeds/classes/class.ilFeedItem.php");
7 include_once(
"./Services/Feeds/classes/class.ilFeedWriter.php");
30 if ($a_user_id ==
"" || $a_hash ==
"")
36 if (!$news_set->get(
"enable_rss_for_internal"))
41 include_once
"Services/User/classes/class.ilObjUser.php";
44 include_once(
"./Services/News/classes/class.ilNewsItem.php");
59 if ($ilSetting->get(
'short_inst_name') !=
"")
79 if ($obj_type ==
"mcst")
81 include_once(
"./Modules/MediaCast/classes/class.ilObjMediaCastAccess.php");
91 ($item[
"context_obj_type"], $item[
"title"], $item[
"content_is_lang_var"],
92 $item[
"agg_ref_id"], $item[
"aggregation"]);
95 include_once(
"./Services/Locator/classes/class.ilLocatorGUI.php");
97 $cont_loc->addContextItems($item[
"ref_id"],
true);
98 $cont_loc->setTextOnly(
true);
99 $loc =
"[".$cont_loc->getHTML().
"]";
102 if ($news_set->get(
"rss_title_format") ==
"news_obj")
117 $feed_item->setDescription($content);
120 if (in_array($item[
"context_obj_type"], array(
"dbk",
"lm")) && $item[
"context_sub_obj_type"] ==
"pg"
121 && $item[
"context_sub_obj_id"] > 0)
123 $feed_item->setLink(ILIAS_HTTP_PATH.
"/goto.php?client_id=".CLIENT_ID.
124 "&target=pg_".$item[
"context_sub_obj_id"].
"_".$item[
"ref_id"]);
126 else if ($item[
"context_obj_type"] ==
"wiki" && $item[
"context_sub_obj_type"] ==
"wpg"
127 && $item[
"context_sub_obj_id"] > 0)
129 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
131 $feed_item->setLink(ILIAS_HTTP_PATH.
"/goto.php?client_id=".CLIENT_ID.
132 "&target=".$item[
"context_obj_type"].
"_".$item[
"ref_id"].
"_".urlencode($wptitle));
134 else if (in_array($item[
"context_obj_type"], array(
"frm")) && $item[
"context_sub_obj_type"] ==
"pos"
135 && $item[
"context_sub_obj_id"] > 0)
138 include_once(
"./Modules/Forum/classes/class.ilObjForumAccess.php");
139 $thread_id = ilObjForumAccess::_getThreadForPosting($item[
"context_sub_obj_id"]);
142 $feed_item->setLink(ILIAS_HTTP_PATH.
"/goto.php?client_id=".CLIENT_ID.
143 "&target=".$item[
"context_obj_type"].
"_".$item[
"ref_id"].
"_".$thread_id.
"_".$item[
"context_sub_obj_id"]);
147 $feed_item->setLink(ILIAS_HTTP_PATH.
"/goto.php?client_id=".CLIENT_ID.
148 "&target=".$item[
"context_obj_type"].
"_".$item[
"ref_id"]);
153 $feed_item->setLink(ILIAS_HTTP_PATH.
"/goto.php?client_id=".CLIENT_ID.
154 "&target=".$item[
"context_obj_type"].
"_".$item[
"ref_id"]);
156 $feed_item->setAbout($feed_item->getLink().
"&il_about_feed=".$item[
"id"]);
157 $feed_item->setDate($item[
"creation_date"]);