ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
feed.php
Go to the documentation of this file.
1
<?php
2
24
require_once
'../vendor/composer/vendor/autoload.php'
;
25
26
ilContext::init
(
ilContext::CONTEXT_RSS
);
27
28
ilInitialisation::initILIAS
();
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) {
47
$writer =
new
ilUserFeedWriter
(
$requested_user_id
,
$requested_hash
);
48
$writer->showFeed();
49
} elseif (
$requested_ref_id
> 0) {
50
$writer =
new
ilObjectFeedWriter
(
$requested_ref_id
,
false
,
$requested_purpose
);
51
$writer->showFeed();
52
} elseif (
$requested_blog_id
> 0) {
53
ilObjBlog::deliverRSS
(
$requested_blog_id
);
54
}
$requested_purpose
$requested_purpose
Definition:
feed.php:42
ilContext\CONTEXT_RSS
const CONTEXT_RSS
Definition:
class.ilContext.php:32
$requested_hash
$requested_hash
Definition:
feed.php:44
$getPar
$getPar
Definition:
feed.php:31
$DIC
global $DIC
Definition:
feed.php:29
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1153
$requested_ref_id
$requested_ref_id
Definition:
feed.php:41
$requested_user_id
$requested_user_id
Definition:
feed.php:40
ilObjBlog\deliverRSS
static deliverRSS(string $a_wsp_id)
Deliver blog as rss feed.
Definition:
class.ilObjBlog.php:257
ilObjectFeedWriter
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilObjectFeedWriter.php:23
ilContext\init
static init(string $a_type)
Init context by type.
Definition:
class.ilContext.php:52
ilUserFeedWriter
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilUserFeedWriter.php:23
$requested_blog_id
$requested_blog_id
Definition:
feed.php:43
components
ILIAS
Feeds
resources
feed.php
Generated on Wed Sep 10 2025 15:15:35 for ILIAS by
1.8.13 (using
Doxyfile
)