ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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, $ilCtrl, 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  }
global $DIC
Definition: saml.php:7
global $ilCtrl
Definition: ilias.php:18
$lng

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->show();
88  }
global $DIC
Definition: saml.php:7
$_GET["client_id"]
$tpl
Definition: ilias.php:10
Class ilObjLinkResourceGUI.
$lng

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