5include_once(
"./Services/News/classes/class.ilNewsItem.php");
 
    6include_once(
"./Services/Feeds/classes/class.ilFeedItem.php");
 
    7include_once(
"./Services/Feeds/classes/class.ilFeedWriter.php");
 
   26                parent::ilFeedWriter();
 
   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");
 
   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"]);
 
   98                                if ($news_set->get(
"rss_title_format") == 
"news_obj")
 
  100                                        $feed_item->setTitle($this->
prepareStr(str_replace(
"<br />", 
" ", $title)).
 
  107                                                ": ".$this->
prepareStr(str_replace(
"<br />", 
" ", $title)));
 
  113                                $feed_item->setDescription($content);
 
  116                                if (in_array($item[
"context_obj_type"], array(
"dbk", 
"lm")) && $item[
"context_sub_obj_type"] == 
"pg" 
  117                                        && $item[
"context_sub_obj_id"] > 0)
 
  119                                        $feed_item->setLink(ILIAS_HTTP_PATH.
"/goto.php?client_id=".CLIENT_ID.
 
  120                                                "&target=pg_".$item[
"context_sub_obj_id"].
"_".$item[
"ref_id"]);
 
  122                                else if ($item[
"context_obj_type"] == 
"wiki" && $item[
"context_sub_obj_type"] == 
"wpg" 
  123                                        && $item[
"context_sub_obj_id"] > 0)
 
  125                                        include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
 
  127                                        $feed_item->setLink(ILIAS_HTTP_PATH.
"/goto.php?client_id=".CLIENT_ID.
 
  128                                                "&target=".$item[
"context_obj_type"].
"_".$item[
"ref_id"].
"_".urlencode($wptitle)); 
 
  130                                else if (in_array($item[
"context_obj_type"], array(
"frm")) && $item[
"context_sub_obj_type"] == 
"pos" 
  131                                        && $item[
"context_sub_obj_id"] > 0)
 
  134                                        include_once(
"./Modules/Forum/classes/class.ilObjForumAccess.php");
 
  135                                        $thread_id = ilObjForumAccess::_getThreadForPosting($item[
"context_sub_obj_id"]);
 
  138                                                $feed_item->setLink(ILIAS_HTTP_PATH.
"/goto.php?client_id=".CLIENT_ID.
 
  139                                                        "&target=".$item[
"context_obj_type"].
"_".$item[
"ref_id"].
"_".$thread_id.
"_".$item[
"context_sub_obj_id"]);
 
  143                                                $feed_item->setLink(ILIAS_HTTP_PATH.
"/goto.php?client_id=".CLIENT_ID.
 
  144                                                        "&target=".$item[
"context_obj_type"].
"_".$item[
"ref_id"]);
 
  149                                        $feed_item->setLink(ILIAS_HTTP_PATH.
"/goto.php?client_id=".CLIENT_ID.
 
  150                                                "&target=".$item[
"context_obj_type"].
"_".$item[
"ref_id"]);
 
  152                                $feed_item->setAbout($feed_item->getLink().
"&il_about_feed=".$item[
"id"]);
 
  153                                $feed_item->setDate($item[
"creation_date"]);
 
A FeedItem represents an item in a News Feed.
addItem($a_item)
Add Item Item is an object of type ilFeedItem.
setChannelLink($a_link)
Channel Link URL to which an HTML rendering of the channel title will link.
setChannelAbout($a_ab)
Unique URI that defines the channel.
getContextPath($a_ref_id)
setChannelTitle($a_title)
Channel Title.
static _getNewsItemsOfUser($a_user_id, $a_only_public=false, $a_prevent_aggregation=false, $a_per=0, &$a_cnt=NULL)
Get all news items for a user.
static determineNewsContent($a_context_obj_type, $a_content, $a_is_lang_var)
Determine new content.
static determineNewsTitle($a_context_obj_type, $a_title, $a_content_is_lang_var, $a_agg_ref_id=0, $a_aggregation="")
Determine title for news item entry.
_lookupFeedHash($a_user_id, $a_create=false)
Lookup news feed hash for user.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static _lookupType($a_id, $a_reference=false)
lookup object type
Feed writer for personal user feeds.
ilUserFeedWriter($a_user_id, $a_hash, $privFeed=false)
static lookupTitle($a_page_id)
Checks whether a page with given title exists.