ILIAS  release_8 Revision v8.23
ilLinkResourceHandlerGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilLinkResourceHandlerGUI:
+ Collaboration diagram for ilLinkResourceHandlerGUI:

Public Member Functions

 __construct ()
 
 executeCommand ()
 

Protected Attributes

Refinery $refinery
 
HTTPService $http
 
ilCtrlInterface $ctrl
 
ilLanguage $lng
 
ilAccessHandler $access
 
ilNavigationHistory $navigationHistory
 
ilGlobalTemplateInterface $tpl
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 31 of file class.ilLinkResourceHandlerGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilLinkResourceHandlerGUI::__construct ( )

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

References $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

42  {
43  global $DIC;
44 
45  $this->ctrl = $DIC->ctrl();
46  $this->lng = $DIC->language();
47  $this->access = $DIC->access();
48  $this->navigationHistory = $DIC['ilNavigationHistory'];
49  $this->http = $DIC->http();
50  $this->refinery = $DIC->refinery();
51  $this->tpl = $DIC->ui()->mainTemplate();
52  }
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilLinkResourceHandlerGUI::executeCommand ( )

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

References $DIC, $ref_id, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and ilObject2GUI\REPOSITORY_NODE_ID.

54  : void
55  {
56  global $DIC;
57 
58  $ref_id = $this->http->wrapper()->query()->has('ref_id') ?
59  $this->http->wrapper()->query()->retrieve(
60  'ref_id',
61  $this->refinery->kindlyTo()->int()
62  ) : 0;
63 
64  $next_class = $this->ctrl->getNextClass($this);
65  if ($next_class == "") {
66  $this->ctrl->setCmdClass(ilObjLinkResourceGUI::class);
67  $next_class = $this->ctrl->getNextClass($this);
68  }
69  if ($this->access->checkAccess("read", "", $ref_id)) {
70  $this->navigationHistory->addItem(
71  $ref_id,
72  "ilias.php?baseClass=ilLinkResourceHandlerGUI&cmd=infoScreen&ref_id=" . $ref_id,
73  "webr"
74  );
75  }
76  switch ($next_class) {
77  case 'ilobjlinkresourcegui':
78  $link_gui = new ilObjLinkResourceGUI(
79  $ref_id,
81  );
82  $this->ctrl->forwardCommand($link_gui);
83  break;
84  }
85  $this->tpl->printToStdout();
86  }
Class ilObjLinkResourceGUI.
global $DIC
Definition: feed.php:28
static http()
Fetches the global http state from ILIAS.
$ref_id
Definition: ltiauth.php:67
+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ilLinkResourceHandlerGUI::$access
protected

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

◆ $ctrl

ilCtrlInterface ilLinkResourceHandlerGUI::$ctrl
protected

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

◆ $http

HTTPService ilLinkResourceHandlerGUI::$http
protected

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

◆ $lng

ilLanguage ilLinkResourceHandlerGUI::$lng
protected

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

◆ $navigationHistory

ilNavigationHistory ilLinkResourceHandlerGUI::$navigationHistory
protected

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

◆ $refinery

Refinery ilLinkResourceHandlerGUI::$refinery
protected

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

◆ $tpl

ilGlobalTemplateInterface ilLinkResourceHandlerGUI::$tpl
protected

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


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