11include_once 
"Services/Context/classes/class.ilContext.php";
 
   14require_once(
"Services/Init/classes/class.ilInitialisation.php");
 
   24                Header(
"WWW-Authenticate: Basic realm=\"ILIAS Newsfeed\"");
 
   25                Header(
"HTTP/1.0 401 Unauthorized");
 
   36                        include_once(
"./Services/Feeds/classes/class.ilUserFeedWriter.php");
 
   44                        include_once(
"./Services/Feeds/classes/class.ilObjectFeedWriter.php");
 
   55                                Header(
"WWW-Authenticate: Basic realm=\"ILIAS Newsfeed\"");
 
   56                                Header(
"HTTP/1.0 401 Unauthorized");
 
   60                        include_once(
"./Services/Feeds/classes/class.ilFeedItem.php");
 
   61                        include_once(
"./Services/Feeds/classes/class.ilFeedWriter.php");
 
   65                        $lng->loadLanguageModule(
"news");
 
   69                                $blankFeedWriter->setChannelTitle(
$ilSetting->get(
'short_inst_name'));
 
   73                                $blankFeedWriter->setChannelTitle(
"ILIAS");
 
   79                        if (!
$feed_set->get(
"enable_private_feed"))
 
   81                                $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
 
   82                                $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);                      
 
   84                                $feed_item->setTitle(
$lng->txt(
"priv_feed_no_access_title"));
 
   87                                $feed_item->setDescription(
$lng->txt(
"priv_feed_no_access_body"));
 
   88                                $feed_item->setLink(ILIAS_HTTP_PATH);
 
   92                                $blankFeedWriter->setChannelAbout(ILIAS_HTTP_PATH);
 
   93                                $blankFeedWriter->setChannelLink(ILIAS_HTTP_PATH);                      
 
   95                                $feed_item->setTitle(
$lng->txt(
"priv_feed_no_auth_title"));
 
   98                                $feed_item->setDescription(
$lng->txt(
"priv_feed_no_auth_body"));
 
   99                                $feed_item->setLink(ILIAS_HTTP_PATH);
 
  101                        $blankFeedWriter->addItem($feed_item);
 
  102                        $blankFeedWriter->showFeed();
 
An exception for terminatinating execution or to throw for unit testing.
static init($a_type)
Init context by type.
A FeedItem represents an item in a News Feed.
static initILIAS()
ilias initialisation
static _lookupLogin($a_user_id)
lookup login
static _lookupId($a_user_str)
Lookup id by login.
static _getFeedPass($a_user_id)
Lookup news feed password for user.
Feed writer for personal user feeds.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']