ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\GlobalScreen\Client\ContentRenderer Class Reference
+ Collaboration diagram for ILIAS\GlobalScreen\Client\ContentRenderer:

Public Member Functions

 run ()
 

Detailed Description

Definition at line 8 of file gs_content.php.

Member Function Documentation

◆ run()

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

Definition at line 12 of file gs_content.php.

References $_GET, $DIC, Vendor\Package\$f, CLIENT_ID, ilContext\CONTEXT_WAC, ilContext\init(), and ilInitialisation\initILIAS().

13  {
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  }
const CONTEXT_WAC
global $DIC
Definition: feed.php:28
static initILIAS()
ilias initialisation
$_GET['client_id']
Definition: saml1-acs.php:21
const CLIENT_ID
Definition: constants.php:41
static init(string $a_type)
Init context by type.
+ Here is the call graph for this function:

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