ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
ilMediaCastHandlerGUI Class Reference

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

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

Public Member Functions

 __construct ()
 
 executeCommand ()
 

Protected Attributes

StandardGUIRequest $request
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilAccessHandler $access
 
ilGlobalTemplateInterface $tpl
 
ilNavigationHistory $nav_history
 

Detailed Description

Handles user interface for media casts auth @ilCtrl_Calls ilMediaCastHandlerGUI: ilObjMediaCastGUI.

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

Constructor & Destructor Documentation

◆ __construct()

ilMediaCastHandlerGUI::__construct ( )

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

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 }
global $DIC
Definition: feed.php:28

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

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilMediaCastHandlerGUI::executeCommand ( )

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

53 : void
54 {
55 $ilAccess = $this->access;
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
88 }
ilGlobalTemplateInterface $tpl
printToStdout(string $part=self::DEFAULT_BLOCK, bool $has_tabs=true, bool $skip_main_menu=false)

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

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilMediaCastHandlerGUI::$access
protected

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

Referenced by executeCommand().

◆ $ctrl

ilCtrl ilMediaCastHandlerGUI::$ctrl
protected

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

◆ $lng

ilLanguage ilMediaCastHandlerGUI::$lng
protected

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

◆ $nav_history

ilNavigationHistory ilMediaCastHandlerGUI::$nav_history
protected

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

Referenced by executeCommand().

◆ $request

StandardGUIRequest ilMediaCastHandlerGUI::$request
protected

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

◆ $tpl

ilGlobalTemplateInterface ilMediaCastHandlerGUI::$tpl
protected

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

Referenced by executeCommand().


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