ILIAS  trunk Revision v12.0_alpha-1329-g1094ddb0c33
feed.php
Go to the documentation of this file.
1<?php
2
19require_once __DIR__ . '/../artifacts/bootstrap_default.php';
20entry_point('ILIAS Legacy Initialisation Adapter');
21
23
25global $DIC;
26
27$getPar = static function (string $key, string $func) {
28 global $DIC;
29 return $DIC->http()->wrapper()->query()->has($key)
30 ? $DIC->http()->wrapper()->query()->retrieve(
31 $key,
32 $DIC->refinery()->kindlyTo()->$func()
33 ) : ($func === "int" ? 0 : '');
34};
35
36$requested_user_id = $getPar("user_id", "int");
37$requested_ref_id = $getPar("ref_id", "int");
38$requested_purpose = $getPar("purpose", "string");
39$requested_blog_id = $getPar("blog_id", "string");
40$requested_hash = $getPar("hash", "string");
41
42if ($requested_user_id > 0) {
44 $writer->showFeed();
45} elseif ($requested_ref_id > 0) {
47 $writer->showFeed();
48} elseif ($requested_blog_id > 0) {
50}
static init(string $a_type)
Init context by type.
Definition: ilContext.php:52
const CONTEXT_RSS
Definition: ilContext.php:32
static initILIAS()
ilias initialisation
static deliverRSS(string $a_wsp_id)
Deliver blog as rss feed.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Feed writer for personal user feeds.
$requested_blog_id
Definition: feed.php:39
global $DIC
Definition: feed.php:25
$getPar
Definition: feed.php:27
$requested_user_id
Definition: feed.php:36
$requested_ref_id
Definition: feed.php:37
$requested_purpose
Definition: feed.php:38
$requested_hash
Definition: feed.php:40
entry_point(string $name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: result1.php:21