ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilMediaPoolPresentationGUI.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
16{
20 protected $ctrl;
21
25 protected $access;
26
30 protected $nav_history;
31
32 public $tpl;
33 public $lng;
35
40 public function __construct()
41 {
42 global $DIC;
43
44 $this->access = $DIC->access();
45 $this->nav_history = $DIC["ilNavigationHistory"];
46 $tpl = $DIC["tpl"];
47 $lng = $DIC->language();
48 $objDefinition = $DIC["objDefinition"];
49 $ilCtrl = $DIC->ctrl();
50
51 $lng->loadLanguageModule("content");
52
53 $this->ctrl = $ilCtrl;
54
55 // initiate variables
56 $this->tpl = $tpl;
57 $this->lng = $lng;
58 $this->objDefinition = $objDefinition;
59 }
60
64 public function executeCommand()
65 {
68 $ilAccess = $this->access;
69 $ilNavigationHistory = $this->nav_history;
70
71 $next_class = $this->ctrl->getNextClass($this);
72 $cmd = $this->ctrl->getCmd("");
73
74 // add entry to navigation history
75 if ($ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
76 $ilNavigationHistory->addItem(
77 $_GET["ref_id"],
78 "ilias.php?baseClass=ilMediaPoolPresentationGUI&ref_id=" . $_GET["ref_id"],
79 "mep"
80 );
81 }
82
83 switch ($next_class) {
84 case "ilobjmediapoolgui":
85 require_once("./Modules/MediaPool/classes/class.ilObjMediaPoolGUI.php");
86 $mep_gui = new ilObjMediaPoolGUI($_GET["ref_id"]);
87 $ilCtrl->forwardCommand($mep_gui);
88 break;
89
90 default:
91 $this->ctrl->setCmdClass("ilobjmediapoolgui");
92 //$this->ctrl->setCmd("");
93 return $this->executeCommand();
94 break;
95 }
96 }
97}
$_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
global $DIC
Definition: saml.php:7