ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
feed.php
Go to the documentation of this file.
1
<?php
2
23
require_once
'../vendor/composer/vendor/autoload.php'
;
24
25
ilContext::init
(
ilContext::CONTEXT_RSS
);
26
27
ilInitialisation::initILIAS
();
28
global
$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
45
if
(
$requested_user_id
> 0) {
46
$writer =
new
ilUserFeedWriter
(
$requested_user_id
,
$requested_hash
);
47
$writer->showFeed();
48
} elseif (
$requested_ref_id
> 0) {
49
$writer =
new
ilObjectFeedWriter
(
$requested_ref_id
,
false
,
$requested_purpose
);
50
$writer->showFeed();
51
} elseif (
$requested_blog_id
> 0) {
52
ilObjBlog::deliverRSS
(
$requested_blog_id
);
53
}
$requested_purpose
$requested_purpose
Definition:
feed.php:41
ilContext\CONTEXT_RSS
const CONTEXT_RSS
Definition:
class.ilContext.php:32
$requested_hash
$requested_hash
Definition:
feed.php:43
$getPar
$getPar
Definition:
feed.php:30
$DIC
global $DIC
Definition:
feed.php:28
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1145
$requested_ref_id
$requested_ref_id
Definition:
feed.php:40
$requested_user_id
$requested_user_id
Definition:
feed.php:39
ilObjBlog\deliverRSS
static deliverRSS(string $a_wsp_id)
Deliver blog as rss feed.
Definition:
class.ilObjBlog.php:178
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:42
components
ILIAS
Feeds
resources
feed.php
Generated on Sun Aug 31 2025 23:02:56 for ILIAS by
1.8.13 (using
Doxyfile
)