ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
gs_content.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\GlobalScreen\Client
;
20
21
require_once(__DIR__ .
'/../vendor/composer/vendor/autoload.php'
);
22
require_once(__DIR__ .
'/../artifacts/bootstrap_default.php'
);
23
24
use
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher
;
25
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Lost
;
26
27
class
ContentRenderer
28
{
29
use
Hasher
;
30
31
public
function
run
(): void
32
{
33
global
$DIC
;
34
35
$GS = $DIC->globalScreen();
36
37
$GS->collector()->mainmenu()->collectStructure();
38
$GS->collector()->mainmenu()->filterItemsByVisibilty(
true
);
39
$GS->collector()->mainmenu()->prepareItemsForUIRepresentation();
40
41
$unhash = $this->unhash(
$_GET
[
'item'
]);
42
$identification = $GS->identification()->fromSerializedIdentification($unhash);
43
$item = $GS->collector()->mainmenu()->getSingleItemFromFilter($identification);
44
45
if
($item instanceof Lost) {
46
$f
= $DIC->ui()->factory();
47
$component =
$f
->button()->bulky(
48
$f
->symbol()->glyph()->login(),
49
$DIC->language()->txt(
'login'
),
50
'login.php?client_id='
. rawurlencode(
CLIENT_ID
) .
'&cmd=force_login&lang='
. $DIC->user()->getCurrentLanguage()
51
);
52
}
else
{
53
$component = $item->getTypeInformation()->getRenderer()->getComponentForItem($item,
true
);
54
}
55
echo $DIC->ui()->renderer()->renderAsync($component);
56
}
57
}
58
59
if
(php_sapi_name() !==
'cli'
) {
60
\ilContext::init
(\
ilContext::CONTEXT_WAC
);
61
entry_point
(
'ILIAS Legacy Initialisation Adapter'
);
62
(
new
ContentRenderer
())->
run
();
63
}
$_GET
$_GET["client_id"]
Definition:
webdav.php:30
ilContext\CONTEXT_WAC
const CONTEXT_WAC
Definition:
class.ilContext.php:43
ILIAS\GlobalScreen\Client
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
callback_handler.php:19
Lost
Hasher
GuzzleHttp\Client\ContentRenderer
Definition:
gs_content.php:27
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
CLIENT_ID
const CLIENT_ID
Definition:
constants.php:41
$DIC
global $DIC
Definition:
shib_login.php:26
Hasher
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilContext\init
static init(string $a_type)
Init context by type.
Definition:
class.ilContext.php:52
GuzzleHttp\Client\ContentRenderer\run
run()
Definition:
gs_content.php:31
entry_point
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
components
ILIAS
GlobalScreen
resources
gs_content.php
Generated on Sun Aug 31 2025 23:03:01 for ILIAS by
1.8.13 (using
Doxyfile
)