ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 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 ilMediaPoolPresentationGUI: ilObjMediaPoolGUI

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

Constructor & Destructor Documentation

◆ __construct()

ilMediaPoolPresentationGUI::__construct ( )

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

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

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

Member Function Documentation

◆ executeCommand()

ilMediaPoolPresentationGUI::executeCommand ( )

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

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

61  : void
62  {
63  $ilCtrl = $this->ctrl;
64  $ilAccess = $this->access;
65  $ilNavigationHistory = $this->nav_history;
66 
67  $next_class = $this->ctrl->getNextClass($this);
68 
69  // add entry to navigation history
70  if ($ilAccess->checkAccess("read", "", $this->request->getRefId())) {
71  $ilNavigationHistory->addItem(
72  $this->request->getRefId(),
73  "ilias.php?baseClass=ilMediaPoolPresentationGUI&ref_id=" . $this->request->getRefId(),
74  "mep"
75  );
76  }
77 
78  switch ($next_class) {
79  case "ilobjmediapoolgui":
80  $mep_gui = new ilObjMediaPoolGUI($this->request->getRefId());
81  $ilCtrl->forwardCommand($mep_gui);
82  break;
83 
84  default:
85  $this->ctrl->saveParameterByClass(ilObjMediaPoolGUI::class, "ref_id");
86  $this->ctrl->redirectByClass(ilObjMediaPoolGUI::class, $this->ctrl->getCmd());
87  }
88  }
User Interface class for media pool objects.
+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilMediaPoolPresentationGUI::$access
protected

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

Referenced by executeCommand().

◆ $ctrl

ilCtrl ilMediaPoolPresentationGUI::$ctrl
protected

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

Referenced by executeCommand().

◆ $lng

ilLanguage ilMediaPoolPresentationGUI::$lng
protected

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

Referenced by __construct().

◆ $nav_history

ilNavigationHistory ilMediaPoolPresentationGUI::$nav_history
protected

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

Referenced by executeCommand().

◆ $objDefinition

ilObjectDefinition ilMediaPoolPresentationGUI::$objDefinition
protected

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

Referenced by __construct().

◆ $request

ILIAS MediaPool StandardGUIRequest ilMediaPoolPresentationGUI::$request
protected

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

◆ $tpl

ilGlobalTemplateInterface ilMediaPoolPresentationGUI::$tpl
protected

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

Referenced by __construct().


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