ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilMediaPoolPresentationGUI.php
Go to the documentation of this file.
1 <?php
2 /*
3  +-----------------------------------------------------------------------------+
4  | ILIAS open source |
5  +-----------------------------------------------------------------------------+
6  | Copyright (c) 1998-2005 ILIAS open source, University of Cologne |
7  | |
8  | This program is free software; you can redistribute it and/or |
9  | modify it under the terms of the GNU General Public License |
10  | as published by the Free Software Foundation; either version 2 |
11  | of the License, or (at your option) any later version. |
12  | |
13  | This program is distributed in the hope that it will be useful, |
14  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16  | GNU General Public License for more details. |
17  | |
18  | You should have received a copy of the GNU General Public License |
19  | along with this program; if not, write to the Free Software |
20  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21  +-----------------------------------------------------------------------------+
22 */
23 
24 
37 {
43  var $ilias;
44  var $tpl;
45  var $lng;
47 
53  {
55  $rbacsystem;
56 
57  $lng->loadLanguageModule("content");
58 
59  $this->ctrl =& $ilCtrl;
60 
61  // initiate variables
62  $this->ilias =& $ilias;
63  $this->tpl =& $tpl;
64  $this->lng =& $lng;
65  $this->objDefinition =& $objDefinition;
66  }
67 
71  function &executeCommand()
72  {
73  global $tpl, $ilCtrl, $ilAccess, $ilNavigationHistory;
74 
75  $next_class = $this->ctrl->getNextClass($this);
76  $cmd = $this->ctrl->getCmd("");
77 
78  // add entry to navigation history
79  if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
80  {
81  $ilNavigationHistory->addItem($_GET["ref_id"],
82  "ilias.php?baseClass=ilMediaPoolPresentationGUI&ref_id=".$_GET["ref_id"], "mep");
83  }
84 
85  switch($next_class)
86  {
87  case "ilobjmediapoolgui":
88  require_once ("./Modules/MediaPool/classes/class.ilObjMediaPoolGUI.php");
89  $mep_gui =& new ilObjMediaPoolGUI("", $_GET["ref_id"],true, false);
90  $ilCtrl->forwardCommand($mep_gui);
91  break;
92 
93  default:
94  $this->ctrl->setCmdClass("ilobjmediapoolgui");
95  //$this->ctrl->setCmd("");
96  return $this->executeCommand();
97  break;
98  }
99  }
100 
101 }
102 ?>