ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\GlobalScreen\Client\ContentRenderer Class Reference
+ Collaboration diagram for ILIAS\GlobalScreen\Client\ContentRenderer:

Public Member Functions

 run ()
 

Detailed Description

Author
Fabian Schmid fabia.nosp@m.n@sr.nosp@m..solu.nosp@m.tion.nosp@m.s

Definition at line 29 of file ContentRenderer.php.

Member Function Documentation

◆ run()

ILIAS\GlobalScreen\Client\ContentRenderer::run ( )

Definition at line 33 of file ContentRenderer.php.

33 : void
34 {
35 global $DIC;
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 }
const CLIENT_ID
Definition: constants.php:41
$_GET['cmd']
Definition: lti.php:26
global $DIC
Definition: shib_login.php:26

References $_GET, $DIC, Vendor\Package\$f, and CLIENT_ID.


The documentation for this class was generated from the following file: