ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMediaPoolPresentationGUI.php
Go to the documentation of this file.
1<?php
2
25{
26 protected \ILIAS\MediaPool\StandardGUIRequest $request;
27 protected ilCtrl $ctrl;
31 protected ilLanguage $lng;
33
34 public function __construct()
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 }
60
61 public function executeCommand(): 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 }
89}
Class ilCtrl provides processing control methods.
language handling
loadLanguageModule(string $a_module)
Load language module.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS MediaPool StandardGUIRequest $request
Last visited history for repository items.
User Interface class for media pool objects.
parses the objects.xml it handles the xml-description of all ilias objects
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26