ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ilMediaPoolPresentationGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilMediaPoolPresentationGUI:
+ Collaboration diagram for ilMediaPoolPresentationGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 

Protected Attributes

ILIAS MediaPool InternalGUIService $gui
 
ILIAS MediaPool StandardGUIRequest $request
 
ilCtrl $ctrl
 
ilAccessHandler $access
 
ilNavigationHistory $nav_history
 
ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
ilObjectDefinition $objDefinition
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Top level GUI class for media pools.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de @ilCtrl_Calls ilMediaPoolPresentationGUI: ilObjMediaPoolGUI

Definition at line 24 of file class.ilMediaPoolPresentationGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilMediaPoolPresentationGUI::__construct ( )

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

36 {
37 global $DIC;
38
39 $this->access = $DIC->access();
40 $this->nav_history = $DIC["ilNavigationHistory"];
41 $tpl = $DIC["tpl"];
42 $lng = $DIC->language();
43 $objDefinition = $DIC["objDefinition"];
44 $ilCtrl = $DIC->ctrl();
45
46 $lng->loadLanguageModule("content");
47
48 $this->ctrl = $ilCtrl;
49 // initiate variables
50 $this->tpl = $tpl;
51 $this->lng = $lng;
52 $this->objDefinition = $objDefinition;
53 $this->gui = $DIC->mediaPool()->internal()->gui();
54 $DIC->globalScreen()->tool()->context()->claim()->repository();
55 $DIC->globalScreen()->tool()->context()->current()->addAdditionalData(ilMediaPoolGSToolProvider::SHOW_FOLDERS_TOOL, true);
56
57 $this->request = $DIC->mediaPool()
58 ->internal()
59 ->gui()
60 ->standardRequest();
61 }
loadLanguageModule(string $a_module)
Load language module.
global $DIC
Definition: shib_login.php:26

References $DIC, $lng, $objDefinition, $tpl, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), ilLanguage\loadLanguageModule(), and ilMediaPoolGSToolProvider\SHOW_FOLDERS_TOOL.

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilMediaPoolPresentationGUI::executeCommand ( )

Definition at line 63 of file class.ilMediaPoolPresentationGUI.php.

63 : void
64 {
65 $ilCtrl = $this->ctrl;
66 $ilAccess = $this->access;
67 $ilNavigationHistory = $this->nav_history;
68
69 $next_class = $this->ctrl->getNextClass($this);
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=ilMediaPoolPresentationGUI&ref_id=" . $this->request->getRefId(),
76 "mep"
77 );
78 }
79
80 switch ($next_class) {
81 case "ilobjmediapoolgui":
82 $this->gui->permanentLink($this->request->getRefId())->setPermanentLink();
83 $mep_gui = new ilObjMediaPoolGUI($this->request->getRefId());
84 $ilCtrl->forwardCommand($mep_gui);
85 break;
86
87 default:
88 $this->ctrl->saveParameterByClass(ilObjMediaPoolGUI::class, "ref_id");
89 $this->ctrl->saveParameterByClass(ilObjMediaPoolGUI::class, "mepitem_id");
90 $this->ctrl->saveParameterByClass(ilObjMediaPoolGUI::class, "force_filter");
91 $this->ctrl->redirectByClass(ilObjMediaPoolGUI::class, $this->ctrl->getCmd());
92 }
93 }
User Interface class for media pool objects.

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

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilMediaPoolPresentationGUI::$access
protected

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

Referenced by executeCommand().

◆ $ctrl

ilCtrl ilMediaPoolPresentationGUI::$ctrl
protected

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

Referenced by executeCommand().

◆ $gui

ILIAS MediaPool InternalGUIService ilMediaPoolPresentationGUI::$gui
protected

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

◆ $lng

ilLanguage ilMediaPoolPresentationGUI::$lng
protected

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

Referenced by __construct().

◆ $nav_history

ilNavigationHistory ilMediaPoolPresentationGUI::$nav_history
protected

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

Referenced by executeCommand().

◆ $objDefinition

ilObjectDefinition ilMediaPoolPresentationGUI::$objDefinition
protected

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

Referenced by __construct().

◆ $request

ILIAS MediaPool StandardGUIRequest ilMediaPoolPresentationGUI::$request
protected

Definition at line 27 of file class.ilMediaPoolPresentationGUI.php.

◆ $tpl

ilGlobalTemplateInterface ilMediaPoolPresentationGUI::$tpl
protected

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

Referenced by __construct().


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