19declare(strict_types=1);
23use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
33 public function run(): void
37 $GS =
$DIC->globalScreen();
39 $GS->collector()->mainmenu()->collectStructure();
40 $GS->collector()->mainmenu()->filterItemsByVisibilty(
true);
41 $GS->collector()->mainmenu()->prepareItemsForUIRepresentation();
43 $unhash = $this->unhash(
$_GET[
'item']);
44 $identification = $GS->identification()->fromSerializedIdentification($unhash);
45 $item = $GS->collector()->mainmenu()->getSingleItemFromFilter($identification);
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()
55 $component = $item->getTypeInformation()->getRenderer()->getComponentForItem($item,
true);
57 echo
$DIC->ui()->renderer()->renderAsync($component);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...