ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
gs_content.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\GlobalScreen\Client
;
4
5
require_once(
'./libs/composer/vendor/autoload.php'
);
6
7
use
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher
;
8
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Lost
;
9
10
class
ContentRenderer
11
{
12
use
Hasher
;
13
14
public
function
run
()
15
{
16
\ilContext::init
(\
ilContext::CONTEXT_WAC
);
17
\ilInitialisation::initILIAS
();
18
global
$DIC
;
19
20
$GS = $DIC->globalScreen();
21
22
$GS->collector()->mainmenu()->collectStructure();
23
$GS->collector()->mainmenu()->filterItemsByVisibilty(
true
);
24
$GS->collector()->mainmenu()->prepareItemsForUIRepresentation();
25
26
$unhash = $this->unhash(
$_GET
[
'item'
]);
27
$identification = $GS->identification()->fromSerializedIdentification($unhash);
28
$item = $GS->collector()->mainmenu()->getSingleItemFromFilter($identification);
29
30
if
($item instanceof
Lost
) {
31
$f
= $DIC->ui()->factory();
32
$component =
$f
->button()->bulky(
33
$f
->symbol()->glyph()->login(),
34
$DIC->language()->txt(
'login'
),
35
'login.php?client_id='
. rawurlencode(
CLIENT_ID
) .
'&cmd=force_login&lang='
. $DIC->user()->getCurrentLanguage()
36
);
37
}
else
{
38
$component = $item->getTypeInformation()->getRenderer()->getComponentForItem($item,
true
);
39
}
40
echo $DIC->ui()->renderer()->renderAsync($component);
41
}
42
}
43
44
if
(php_sapi_name() !==
'cli'
) {
45
(
new
ContentRenderer
())->
run
();
46
}
$_GET
$_GET["client_id"]
Definition:
webdav.php:30
ilContext\CONTEXT_WAC
const CONTEXT_WAC
Definition:
class.ilContext.php:43
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Lost
Class Lost.
Definition:
Lost.php:44
ILIAS\GlobalScreen\Client
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
gs_content.php:3
Lost
Hasher
$DIC
global $DIC
Definition:
feed.php:28
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1209
ILIAS\GlobalScreen\Client\ContentRenderer
Definition:
gs_content.php:10
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
CLIENT_ID
const CLIENT_ID
Definition:
constants.php:41
ILIAS\GlobalScreen\Client\ContentRenderer\run
run()
Definition:
gs_content.php:14
Hasher
ilContext\init
static init(string $a_type)
Init context by type.
Definition:
class.ilContext.php:52
gs_content.php
Generated on Wed Sep 10 2025 14:10:28 for ILIAS by
1.8.13 (using
Doxyfile
)