ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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

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 @ilCtrl_Calls 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.

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 InternalDomainService $domain
ILIAS MediaCast InternalGUIService $gui
$service
Definition: ltiresult.php:36
global $DIC
Definition: shib_login.php:26

References $DIC, $domain, $gui, $service, 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 58 of file class.ilMediaCastHandlerGUI.php.

58 : 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 }
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 ILIAS\UICore\GlobalTemplate\printToStdout().

+ 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.

Referenced by __construct().

◆ $gui

ILIAS MediaCast InternalGUIService ilMediaCastHandlerGUI::$gui
protected

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

Referenced by __construct().

◆ $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: