◆ run()
ILIAS\GlobalScreen\Client\ContentRenderer::run |
( |
| ) |
|
Definition at line 33 of file ContentRenderer.php.
33 : void
34 {
36
37 $GS =
$DIC->globalScreen();
38
39 $GS->collector()->mainmenu()->collectStructure();
40 $GS->collector()->mainmenu()->filterItemsByVisibilty(true);
41 $GS->collector()->mainmenu()->prepareItemsForUIRepresentation();
42
43 $unhash = $this->unhash(
$_GET[
'item']);
44 $identification = $GS->identification()->fromSerializedIdentification($unhash);
45 $item = $GS->collector()->mainmenu()->getSingleItemFromFilter($identification);
46
47 if ($item instanceof Lost) {
48 $f =
$DIC->ui()->factory();
49 $component =
$f->button()->bulky(
50 $f->symbol()->glyph()->login(),
51 $DIC->language()->txt(
'login'),
52 'login.php?client_id=' . rawurlencode(
CLIENT_ID) .
'&cmd=force_login&lang=' .
$DIC->user()->getCurrentLanguage()
53 );
54 } else {
55 $component = $item->getTypeInformation()->getRenderer()->getComponentForItem($item, true);
56 }
57 echo
$DIC->ui()->renderer()->renderAsync($component);
58 }
References $_GET, $DIC, Vendor\Package\$f, and CLIENT_ID.
The documentation for this class was generated from the following file: