ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
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:22
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 Tue Apr 8 2025 23:03:27 for ILIAS by
1.8.13 (using
Doxyfile
)