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