ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMediaCastHandlerGUI.php
Go to the documentation of this file.
1<?php
2
20
27{
28 protected \ILIAS\MediaCast\InternalGUIService $gui;
29 protected \ILIAS\MediaCast\InternalDomainService $domain;
31 protected ilCtrl $ctrl;
32 protected ilLanguage $lng;
36
37 public function __construct()
38 {
39 global $DIC;
40
41 $service = $DIC->mediaCast()->internal();
42
43 $this->domain = $domain = $service->domain();
44 $this->gui = $gui = $service->gui();
45
46 $this->lng = $domain->lng();
47 $this->access = $domain->access();
48 $this->tpl = $gui->ui()->mainTemplate();
49 $this->nav_history = $gui->navigationHistory();
50 $this->ctrl = $gui->ctrl();
51
52 $this->request = $DIC->mediaCast()
53 ->internal()
54 ->gui()
55 ->standardRequest();
56 }
57
58 public function executeCommand(): void
59 {
60 $ilAccess = $this->access;
62 $ilNavigationHistory = $this->nav_history;
63
64 $next_class = $this->ctrl->getNextClass($this);
65 if ((string) $next_class === "") {
66 $this->ctrl->setParameterByClass(ilObjMediaCastGUI::class, "ref_id", $this->request->getRefId());
67 //exit;
68 $this->ctrl->redirectByClass(ilObjMediaCastGUI::class, "showContent");
69 }
70
71 // add entry to navigation history
72 if ($ilAccess->checkAccess("read", "", $this->request->getRefId())) {
73 $ilNavigationHistory->addItem(
74 $this->request->getRefId(),
75 "ilias.php?baseClass=ilMediaCastHandlerGUI&cmd=showContent&ref_id=" .
76 $this->request->getRefId(),
77 "mcst"
78 );
79 }
80
81 switch ($next_class) {
82 case 'ilobjmediacastgui':
83 $mc_gui = $this->gui->getObjMediaCastGUI();
84 $this->ctrl->forwardCommand($mc_gui);
85 break;
86 }
87
89 }
90}
Class ilCtrl provides processing control methods.
language handling
Handles user interface for media casts auth @ilCtrl_Calls ilMediaCastHandlerGUI: ilObjMediaCastGUI.
ILIAS MediaCast InternalDomainService $domain
ilGlobalTemplateInterface $tpl
ILIAS MediaCast InternalGUIService $gui
Last visited history for repository items.
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$service
Definition: ltiresult.php:36
global $DIC
Definition: shib_login.php:26