ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  }
70 
76  public function executeCommand()
77  {
79  $ilAccess = $this->access;
80  $ilNavigationHistory = $this->nav_history;
81 
82  $next_class = $this->ctrl->getNextClass($this);
83 
84  // add entry to navigation history
85  if ($ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
86  $ilNavigationHistory->addItem(
87  $_GET["ref_id"],
88  "ilias.php?baseClass=ilMediaPoolPresentationGUI&ref_id=" . $_GET["ref_id"],
89  "mep"
90  );
91  }
92 
93  switch ($next_class) {
94  case "ilobjmediapoolgui":
95  require_once("./Modules/MediaPool/classes/class.ilObjMediaPoolGUI.php");
96  $mep_gui = new ilObjMediaPoolGUI($_GET["ref_id"]);
97  $ilCtrl->forwardCommand($mep_gui);
98  break;
99 
100  default:
101  $this->ctrl->setCmdClass("ilobjmediapoolgui");
102  return $this->executeCommand();
103  break;
104  }
105  }
106 }
global $DIC
Definition: saml.php:7
$_GET["client_id"]
global $ilCtrl
Definition: ilias.php:18
Top level GUI class for media pools.
User Interface class for media pool objects.