ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 {
22  var $ilias;
23  var $tpl;
24  var $lng;
26 
32  {
34  $rbacsystem;
35 
36  $lng->loadLanguageModule("content");
37 
38  $this->ctrl =& $ilCtrl;
39 
40  // initiate variables
41  $this->ilias =& $ilias;
42  $this->tpl =& $tpl;
43  $this->lng =& $lng;
44  $this->objDefinition =& $objDefinition;
45  }
46 
50  function &executeCommand()
51  {
52  global $tpl, $ilCtrl, $ilAccess, $ilNavigationHistory;
53 
54  $next_class = $this->ctrl->getNextClass($this);
55  $cmd = $this->ctrl->getCmd("");
56 
57  // add entry to navigation history
58  if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
59  {
60  $ilNavigationHistory->addItem($_GET["ref_id"],
61  "ilias.php?baseClass=ilMediaPoolPresentationGUI&ref_id=".$_GET["ref_id"], "mep");
62  }
63 
64  switch($next_class)
65  {
66  case "ilobjmediapoolgui":
67  require_once ("./Modules/MediaPool/classes/class.ilObjMediaPoolGUI.php");
68  $mep_gui =& new ilObjMediaPoolGUI($_GET["ref_id"]);
69  $ilCtrl->forwardCommand($mep_gui);
70  break;
71 
72  default:
73  $this->ctrl->setCmdClass("ilobjmediapoolgui");
74  //$this->ctrl->setCmd("");
75  return $this->executeCommand();
76  break;
77  }
78  }
79 
80 }
81 ?>