ILIAS  release_7 Revision v7.30-3-g800a261c036
ilLinkResourceHandlerGUI Class Reference

Handles user interface for link resources. More...

+ Collaboration diagram for ilLinkResourceHandlerGUI:

Public Member Functions

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

Detailed Description

Handles user interface for link resources.

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

ilLinkResourceHandlerGUI: ilObjLinkResourceGUI

Definition at line 35 of file class.ilLinkResourceHandlerGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilLinkResourceHandlerGUI::__construct ( )

Definition at line 37 of file class.ilLinkResourceHandlerGUI.php.

References $DIC, and $lng.

38  {
39  global $DIC;
40 
41  $ilCtrl = $DIC['ilCtrl'];
42  $lng = $DIC['lng'];
43  $ilAccess = $DIC['ilAccess'];
44  $ilias = $DIC['ilias'];
45  $ilNavigationHistory = $DIC['ilNavigationHistory'];
46 
47  // initialisation stuff
48  $this->ctrl = &$ilCtrl;
49  }
$lng
global $DIC
Definition: goto.php:24

Member Function Documentation

◆ executeCommand()

ilLinkResourceHandlerGUI::executeCommand ( )

execute command

Definition at line 54 of file class.ilLinkResourceHandlerGUI.php.

References $_GET, $DIC, $lng, $tpl, and ilObject2GUI\REPOSITORY_NODE_ID.

55  {
56  global $DIC;
57 
58  $lng = $DIC['lng'];
59  $ilAccess = $DIC['ilAccess'];
60  $tpl = $DIC['tpl'];
61  $ilNavigationHistory = $DIC['ilNavigationHistory'];
62 
63  $cmd = $this->ctrl->getCmd();
64  $next_class = $this->ctrl->getNextClass($this);
65  if ($next_class == "") {
66  $this->ctrl->setCmdClass("ilobjlinkresourcegui");
67  $next_class = $this->ctrl->getNextClass($this);
68  }
69 
70  // add entry to navigation history
71  if ($ilAccess->checkAccess("read", "", $_GET["ref_id"])) {
72  $ilNavigationHistory->addItem(
73  $_GET["ref_id"],
74  "ilias.php?baseClass=ilLinkResourceHandlerGUI&cmd=infoScreen&ref_id=" . $_GET["ref_id"],
75  "webr"
76  );
77  }
78 
79  switch ($next_class) {
80  case 'ilobjlinkresourcegui':
81  require_once "./Modules/WebResource/classes/class.ilObjLinkResourceGUI.php";
83  $this->ctrl->forwardCommand($link_gui);
84  break;
85  }
86 
87  $tpl->printToStdout();
88  }
$_GET["client_id"]
Class ilObjLinkResourceGUI.
$lng
global $DIC
Definition: goto.php:24
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41

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