ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilMediaPoolPresentationGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
15{
19 protected $ctrl;
20
24 protected $access;
25
29 protected $nav_history;
30
34 protected $tpl;
35
39 protected $lng;
40
44 protected $objDefinition;
45
50 public function __construct()
51 {
52 global $DIC;
53
54 $this->access = $DIC->access();
55 $this->nav_history = $DIC["ilNavigationHistory"];
56 $tpl = $DIC["tpl"];
57 $lng = $DIC->language();
58 $objDefinition = $DIC["objDefinition"];
59 $ilCtrl = $DIC->ctrl();
60
61 $lng->loadLanguageModule("content");
62
63 $this->ctrl = $ilCtrl;
64
65 // initiate variables
66 $this->tpl = $tpl;
67 $this->lng = $lng;
68 $this->objDefinition = $objDefinition;
69 $DIC->globalScreen()->tool()->context()->claim()->repository();
70 $DIC->globalScreen()->tool()->context()->current()->addAdditionalData(ilMediaPoolGSToolProvider::SHOW_FOLDERS_TOOL, true);
71 }
72
78 public function executeCommand()
79 {
81 $ilAccess = $this->access;
82 $ilNavigationHistory = $this->nav_history;
83
84 $next_class = $this->ctrl->getNextClass($this);
85
86 // add entry to navigation history
87 if ($ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
88 $ilNavigationHistory->addItem(
89 $_GET["ref_id"],
90 "ilias.php?baseClass=ilMediaPoolPresentationGUI&ref_id=" . $_GET["ref_id"],
91 "mep"
92 );
93 }
94
95 switch ($next_class) {
96 case "ilobjmediapoolgui":
97 require_once("./Modules/MediaPool/classes/class.ilObjMediaPoolGUI.php");
98 $mep_gui = new ilObjMediaPoolGUI($_GET["ref_id"]);
99 $ilCtrl->forwardCommand($mep_gui);
100 break;
101
102 default:
103 $this->ctrl->setCmdClass("ilobjmediapoolgui");
104 return $this->executeCommand();
105 break;
106 }
107 }
108}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Top level GUI class for media pools.
__construct()
Constructor @access public.
User Interface class for media pool objects.
global $ilCtrl
Definition: ilias.php:18
$DIC
Definition: xapitoken.php:46