ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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, ilContext\CONTEXT_WAC, ilContext\init(), and ilInitialisation\initILIAS().

13  {
16  global $DIC;
17  $DIC->ctrl()->setTargetScript('ilias.php');
18 
19  $GS = $DIC->globalScreen();
20 
21  $GS->collector()->mainmenu()->collectStructure();
22  $GS->collector()->mainmenu()->filterItemsByVisibilty(true);
23  $GS->collector()->mainmenu()->prepareItemsForUIRepresentation();
24 
25  $unhash = $this->unhash($_GET['item']);
26  $identification = $GS->identification()->fromSerializedIdentification($unhash);
27  $item = $GS->collector()->mainmenu()->getSingleItemFromFilter($identification);
28 
29  if ($item instanceof Lost) {
30  $f = $DIC->ui()->factory();
31  $component = $f->button()->bulky(
32  $f->symbol()->glyph()->login(),
33  $DIC->language()->txt('login'),
34  'login.php?client_id=' . rawurlencode(CLIENT_ID) . '&cmd=force_login&lang=' . $DIC->user()->getCurrentLanguage());
35  } else {
36  $component = $item->getTypeInformation()->getRenderer()->getComponentForItem($item, true);
37  }
38  echo $DIC->ui()->renderer()->renderAsync($component);
39  }
const CONTEXT_WAC
$_GET["client_id"]
static initILIAS()
ilias initialisation
static init($a_type)
Init context by type.
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:

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