ILIAS
release_8 Revision v8.25-1-g13de6a5eca6
◀ ilDoc Overview
class.ilLinkResourceHandlerGUI.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
use
ILIAS\HTTP\Services
as HTTPService;
22
use
ILIAS\Refinery\Factory
as Refinery;
23
31
class
ilLinkResourceHandlerGUI
implements
ilCtrlBaseClassInterface
32
{
33
protected
Refinery
$refinery
;
34
protected
HTTPService
$http
;
35
protected
ilCtrlInterface
$ctrl
;
36
protected
ilLanguage
$lng
;
37
protected
ilAccessHandler
$access
;
38
protected
ilNavigationHistory
$navigationHistory
;
39
protected
ilGlobalTemplateInterface
$tpl
;
40
41
public
function
__construct
()
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
}
53
54
public
function
executeCommand
(): 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
,
80
ilObjLinkResourceGUI::REPOSITORY_NODE_ID
81
);
82
$this->
ctrl
->forwardCommand($link_gui);
83
break
;
84
}
85
$this->tpl->printToStdout();
86
}
87
}
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:21
ILIAS\HTTP\Services
Class Services.
Definition:
Services.php:38
ilLanguage
language handling
Definition:
class.ilLanguage.php:44
ilLinkResourceHandlerGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilLinkResourceHandlerGUI.php:32
ilLinkResourceHandlerGUI\$tpl
ilGlobalTemplateInterface $tpl
Definition:
class.ilLinkResourceHandlerGUI.php:39
ilLinkResourceHandlerGUI\$http
HTTPService $http
Definition:
class.ilLinkResourceHandlerGUI.php:34
ilLinkResourceHandlerGUI\$lng
ilLanguage $lng
Definition:
class.ilLinkResourceHandlerGUI.php:36
ilLinkResourceHandlerGUI\$navigationHistory
ilNavigationHistory $navigationHistory
Definition:
class.ilLinkResourceHandlerGUI.php:38
ilLinkResourceHandlerGUI\__construct
__construct()
Definition:
class.ilLinkResourceHandlerGUI.php:41
ilLinkResourceHandlerGUI\executeCommand
executeCommand()
Definition:
class.ilLinkResourceHandlerGUI.php:54
ilLinkResourceHandlerGUI\$access
ilAccessHandler $access
Definition:
class.ilLinkResourceHandlerGUI.php:37
ilLinkResourceHandlerGUI\$refinery
Refinery $refinery
Definition:
class.ilLinkResourceHandlerGUI.php:33
ilLinkResourceHandlerGUI\$ctrl
ilCtrlInterface $ctrl
Definition:
class.ilLinkResourceHandlerGUI.php:35
ilNavigationHistory
Navigation History of Repository Items.
Definition:
class.ilNavigationHistory.php:27
ilObjLinkResourceGUI
Class ilObjLinkResourceGUI.
Definition:
class.ilObjLinkResourceGUI.php:32
ilObject2GUI\REPOSITORY_NODE_ID
const REPOSITORY_NODE_ID
Definition:
class.ilObject2GUI.php:46
$DIC
global $DIC
Definition:
feed.php:28
ilAccessHandler
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilAccessHandler.php:27
ilCtrlBaseClassInterface
Interface ilCtrlBaseClassInterface describes ilCtrl base classes.
Definition:
interface.ilCtrlBaseClassInterface.php:24
ilCtrlInterface
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilCtrlInterface.php:26
ilGlobalTemplateInterface
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilGlobalTemplateInterface.php:25
$ref_id
$ref_id
Definition:
ltiauth.php:67
ILIAS\FileDelivery\http
static http()
Fetches the global http state from ILIAS.
Definition:
HttpServiceAware.php:54
ILIAS\Repository\access
access()
Definition:
trait.GlobalDICDomainServices.php:46
ILIAS\Repository\refinery
refinery()
Definition:
trait.GlobalDICDomainServices.php:71
ILIAS\Repository\ctrl
ctrl()
Definition:
trait.GlobalDICGUIServices.php:52
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:56
Modules
WebResource
classes
class.ilLinkResourceHandlerGUI.php
Generated on Sat Dec 13 2025 22:01:30 for ILIAS by
1.9.4 (using
Doxyfile
)