ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMediaCastHandlerGUI Class Reference

Handles user interface for media casts auth ilMediaCastHandlerGUI: ilObjMediaCastGUI. More...

+ Inheritance diagram for ilMediaCastHandlerGUI:
+ Collaboration diagram for ilMediaCastHandlerGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 

Protected Attributes

ILIAS MediaCast InternalGUIService $gui
 
ILIAS MediaCast InternalDomainService $domain
 
StandardGUIRequest $request
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilAccessHandler $access
 
ilGlobalTemplateInterface $tpl
 
ilNavigationHistory $nav_history
 

Detailed Description

Handles user interface for media casts auth ilMediaCastHandlerGUI: ilObjMediaCastGUI.

Definition at line 26 of file class.ilMediaCastHandlerGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilMediaCastHandlerGUI::__construct ( )

Definition at line 37 of file class.ilMediaCastHandlerGUI.php.

References $DIC, $service, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().

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  }
ILIAS MediaCast InternalGUIService $gui
ILIAS MediaCast InternalDomainService $domain
global $DIC
Definition: shib_login.php:22
$service
Definition: ltiservices.php:40
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilMediaCastHandlerGUI::executeCommand ( )

Definition at line 58 of file class.ilMediaCastHandlerGUI.php.

References $access, $nav_history, $tpl, ILIAS\Repository\ctrl(), and ILIAS\UICore\GlobalTemplate\printToStdout().

58  : void
59  {
60  $ilAccess = $this->access;
61  $tpl = $this->tpl;
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  }
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)
ilGlobalTemplateInterface $tpl
+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilMediaCastHandlerGUI::$access
protected

Definition at line 33 of file class.ilMediaCastHandlerGUI.php.

Referenced by executeCommand().

◆ $ctrl

ilCtrl ilMediaCastHandlerGUI::$ctrl
protected

Definition at line 31 of file class.ilMediaCastHandlerGUI.php.

◆ $domain

ILIAS MediaCast InternalDomainService ilMediaCastHandlerGUI::$domain
protected

Definition at line 29 of file class.ilMediaCastHandlerGUI.php.

◆ $gui

ILIAS MediaCast InternalGUIService ilMediaCastHandlerGUI::$gui
protected

Definition at line 28 of file class.ilMediaCastHandlerGUI.php.

◆ $lng

ilLanguage ilMediaCastHandlerGUI::$lng
protected

Definition at line 32 of file class.ilMediaCastHandlerGUI.php.

◆ $nav_history

ilNavigationHistory ilMediaCastHandlerGUI::$nav_history
protected

Definition at line 35 of file class.ilMediaCastHandlerGUI.php.

Referenced by executeCommand().

◆ $request

StandardGUIRequest ilMediaCastHandlerGUI::$request
protected

Definition at line 30 of file class.ilMediaCastHandlerGUI.php.

◆ $tpl

ilGlobalTemplateInterface ilMediaCastHandlerGUI::$tpl
protected

Definition at line 34 of file class.ilMediaCastHandlerGUI.php.

Referenced by executeCommand().


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