ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
gs_content.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\GlobalScreen\Client
;
2
3
require_once(
'./libs/composer/vendor/autoload.php'
);
4
5
use
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher
;
6
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\Item\Lost
;
7
8
class
ContentRenderer
9
{
10
use
Hasher
;
11
12
public
function
run
()
13
{
14
\ilContext::init
(\
ilContext::CONTEXT_WAC
);
15
\ilInitialisation::initILIAS
();
16
global
$DIC
;
17
18
$GS = $DIC->globalScreen();
19
20
$GS->collector()->mainmenu()->collectStructure();
21
$GS->collector()->mainmenu()->filterItemsByVisibilty(
true
);
22
$GS->collector()->mainmenu()->prepareItemsForUIRepresentation();
23
24
$unhash = $this->unhash(
$_GET
[
'item'
]);
25
$identification = $GS->identification()->fromSerializedIdentification($unhash);
26
$item = $GS->collector()->mainmenu()->getSingleItemFromFilter($identification);
27
28
if
($item instanceof
Lost
) {
29
$f
= $DIC->ui()->factory();
30
$component =
$f
->button()->bulky(
31
$f
->symbol()->glyph()->login(),
32
$DIC->language()->txt(
'login'
),
33
'login.php?client_id='
. rawurlencode(
CLIENT_ID
) .
'&cmd=force_login&lang='
. $DIC->user()->getCurrentLanguage());
34
}
else
{
35
$component = $item->getTypeInformation()->getRenderer()->getComponentForItem($item,
true
);
36
}
37
echo $DIC->ui()->renderer()->renderAsync($component);
38
}
39
}
40
41
if
(php_sapi_name() !==
'cli'
) {
42
(
new
ContentRenderer
())->
run
();
43
}
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:1
Lost
Hasher
$DIC
global $DIC
Definition:
feed.php:28
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1225
ILIAS\GlobalScreen\Client\ContentRenderer
Definition:
gs_content.php:8
$_GET
$_GET['client_id']
Definition:
saml1-acs.php:21
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:12
Hasher
ilContext\init
static init(string $a_type)
Init context by type.
Definition:
class.ilContext.php:52
gs_content.php
Generated on Sun Aug 31 2025 22:01:12 for ILIAS by
1.8.13 (using
Doxyfile
)