ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMediaPoolPresentationGUI Class Reference

Top level GUI class for media pools. More...

+ Collaboration diagram for ilMediaPoolPresentationGUI:

Public Member Functions

 __construct ()
 Constructor public. More...
 
 executeCommand ()
 execute command More...
 

Protected Attributes

 $ctrl
 
 $access
 
 $nav_history
 
 $tpl
 
 $lng
 
 $objDefinition
 

Detailed Description

Top level GUI class for media pools.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e

ilMediaPoolPresentationGUI: ilObjMediaPoolGUI

Definition at line 14 of file class.ilMediaPoolPresentationGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilMediaPoolPresentationGUI::__construct ( )

Constructor public.

Definition at line 50 of file class.ilMediaPoolPresentationGUI.php.

References $DIC, $lng, $objDefinition, $tpl, and ilMediaPoolGSToolProvider\SHOW_FOLDERS_TOOL.

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  }
global $DIC
Definition: goto.php:24

Member Function Documentation

◆ executeCommand()

ilMediaPoolPresentationGUI::executeCommand ( )

execute command

Returns
mixed
Exceptions
ilCtrlException

Definition at line 78 of file class.ilMediaPoolPresentationGUI.php.

References $_GET, $access, $ctrl, and $nav_history.

79  {
80  $ilCtrl = $this->ctrl;
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  }
$_GET["client_id"]
User Interface class for media pool objects.

Field Documentation

◆ $access

ilMediaPoolPresentationGUI::$access
protected

Definition at line 24 of file class.ilMediaPoolPresentationGUI.php.

Referenced by executeCommand().

◆ $ctrl

ilMediaPoolPresentationGUI::$ctrl
protected

Definition at line 19 of file class.ilMediaPoolPresentationGUI.php.

Referenced by executeCommand().

◆ $lng

ilMediaPoolPresentationGUI::$lng
protected

Definition at line 39 of file class.ilMediaPoolPresentationGUI.php.

Referenced by __construct().

◆ $nav_history

ilMediaPoolPresentationGUI::$nav_history
protected

Definition at line 29 of file class.ilMediaPoolPresentationGUI.php.

Referenced by executeCommand().

◆ $objDefinition

ilMediaPoolPresentationGUI::$objDefinition
protected

Definition at line 44 of file class.ilMediaPoolPresentationGUI.php.

Referenced by __construct().

◆ $tpl

ilMediaPoolPresentationGUI::$tpl
protected

Definition at line 34 of file class.ilMediaPoolPresentationGUI.php.

Referenced by __construct().


The documentation for this class was generated from the following file: