ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilMediaCastHandlerGUI.php
Go to the documentation of this file.
1 <?php
2 
20 
27 {
29  protected ilCtrl $ctrl;
30  protected ilLanguage $lng;
34 
35  public function __construct()
36  {
37  global $DIC;
38 
39  $this->lng = $DIC->language();
40  $this->access = $DIC->access();
41  $this->tpl = $DIC["tpl"];
42  $this->nav_history = $DIC["ilNavigationHistory"];
43  $ilCtrl = $DIC->ctrl();
44  $this->request = $DIC->mediaCast()
45  ->internal()
46  ->gui()
47  ->standardRequest();
48 
49  // initialisation stuff
50  $this->ctrl = $ilCtrl;
51  }
52 
53  public function executeCommand(): void
54  {
55  $ilAccess = $this->access;
56  $tpl = $this->tpl;
57  $ilNavigationHistory = $this->nav_history;
58 
59  $next_class = $this->ctrl->getNextClass($this);
60  if ($next_class == "") {
61  $this->ctrl->setCmdClass("ilobjmediacastgui");
62  $next_class = $this->ctrl->getNextClass($this);
63  }
64 
65  // add entry to navigation history
66  if ($ilAccess->checkAccess("read", "", $this->request->getRefId())) {
67  $ilNavigationHistory->addItem(
68  $this->request->getRefId(),
69  "ilias.php?baseClass=ilMediaCastHandlerGUI&cmd=showContent&ref_id=" .
70  $this->request->getRefId(),
71  "mcst"
72  );
73  }
74 
75  switch ($next_class) {
76  case 'ilobjmediacastgui':
77  $mc_gui = new ilObjMediaCastGUI(
78  "",
79  $this->request->getRefId(),
80  true,
81  false
82  );
83  $this->ctrl->forwardCommand($mc_gui);
84  break;
85  }
86 
87  $tpl->printToStdout();
88  }
89 }
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
Handles user interface for media casts auth ilMediaCastHandlerGUI: ilObjMediaCastGUI.
Interface ilCtrlBaseClassInterface describes ilCtrl base classes.
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Navigation History of Repository Items.
ilGlobalTemplateInterface $tpl