ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
feed.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
12include_once "Services/Context/classes/class.ilContext.php";
14
15require_once("Services/Init/classes/class.ilInitialisation.php");
17
18if ($_GET["user_id"] != "")
19{
20 include_once("./Services/Feeds/classes/class.ilUserFeedWriter.php");
21 $writer = new ilUserFeedWriter($_GET["user_id"], $_GET["hash"]);
22 $writer->showFeed();
23}
24else if ($_GET["ref_id"] != "")
25{
26 include_once("./Services/Feeds/classes/class.ilObjectFeedWriter.php");
27 $writer = new ilObjectFeedWriter($_GET["ref_id"], false, $_GET["purpose"]);
28 $writer->showFeed();
29}
30else if ($_GET["blog_id"] != "")
31{
32 include_once("Modules/Blog/classes/class.ilObjBlog.php");
33 ilObjBlog::deliverRSS($_GET["blog_id"]);
34}
35?>
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
static init($a_type)
Init context by type.
const CONTEXT_RSS
static initILIAS()
ilias initialisation
static deliverRSS($a_wsp_id)
Deliver blog as rss feed.
Feed writer for objects.
Feed writer for personal user feeds.