ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
feed.php
Go to the documentation of this file.
1<?php
2
23require_once '../vendor/composer/vendor/autoload.php';
24
26
28global $DIC;
29
30$getPar = static function (string $key, string $func) {
31 global $DIC;
32 return $DIC->http()->wrapper()->query()->has($key)
33 ? $DIC->http()->wrapper()->query()->retrieve(
34 $key,
35 $DIC->refinery()->kindlyTo()->$func()
36 ) : ($func === "int" ? 0 : '');
37};
38
39$requested_user_id = $getPar("user_id", "int");
40$requested_ref_id = $getPar("ref_id", "int");
41$requested_purpose = $getPar("purpose", "string");
42$requested_blog_id = $getPar("blog_id", "string");
43$requested_hash = $getPar("hash", "string");
44
45if ($requested_user_id > 0) {
47 $writer->showFeed();
48} elseif ($requested_ref_id > 0) {
50 $writer->showFeed();
51} elseif ($requested_blog_id > 0) {
53}
static init(string $a_type)
Init context by type.
const CONTEXT_RSS
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$requested_blog_id
Definition: feed.php:42
global $DIC
Definition: feed.php:28
$getPar
Definition: feed.php:30
$requested_user_id
Definition: feed.php:39
$requested_ref_id
Definition: feed.php:40
$requested_purpose
Definition: feed.php:41
$requested_hash
Definition: feed.php:43