ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilLinkResourceHandlerGUI.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
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
($this->
access
->checkAccess(
"read"
,
""
,
$ref_id
)) {
66
$this->
navigationHistory
->addItem(
67
$ref_id
,
68
"ilias.php?baseClass=ilLinkResourceHandlerGUI&cmd=infoScreen&ref_id="
.
$ref_id
,
69
"webr"
70
);
71
}
72
if
($next_class ==
""
) {
73
$this->
ctrl
->saveParameter($this,
'ref_id'
);
74
$this->
ctrl
->redirectByClass(
75
ilObjLinkResourceGUI::class,
76
$this->
ctrl
->getCmd()
77
);
78
}
79
switch
($next_class) {
80
case
strtolower(ilObjLinkResourceGUI::class):
81
$link_gui =
new
ilObjLinkResourceGUI
(
82
$ref_id
,
83
ilObject2GUI::REPOSITORY_NODE_ID
84
);
85
$this->
ctrl
->forwardCommand($link_gui);
86
break
;
87
}
88
$this->tpl->printToStdout();
89
}
90
}
ILIAS\Repository\access
access()
Definition:
trait.GlobalDICDomainServices.php:51
ilLinkResourceHandlerGUI\$ctrl
ilCtrlInterface $ctrl
Definition:
class.ilLinkResourceHandlerGUI.php:35
ilLinkResourceHandlerGUI\executeCommand
executeCommand()
Definition:
class.ilLinkResourceHandlerGUI.php:54
ilLanguage
ilLinkResourceHandlerGUI\$http
HTTPService $http
Definition:
class.ilLinkResourceHandlerGUI.php:34
ilLinkResourceHandlerGUI
Handles user interface for link resources.
Definition:
class.ilLinkResourceHandlerGUI.php:31
ilGlobalTemplateInterface
ilObjLinkResourceGUI
Class ilObjLinkResourceGUI.
Definition:
class.ilObjLinkResourceGUI.php:32
ILIAS\Repository\navigationHistory
navigationHistory()
Definition:
trait.GlobalDICGUIServices.php:131
ilLinkResourceHandlerGUI\$refinery
Refinery $refinery
Definition:
class.ilLinkResourceHandlerGUI.php:33
Services
ilCtrlBaseClassInterface
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
interface.ilCtrlBaseClassInterface.php:37
ILIAS\Repository\refinery
refinery()
Definition:
trait.GlobalDICDomainServices.php:76
ILIAS\Repository\ctrl
ctrl()
Definition:
trait.GlobalDICGUIServices.php:63
$ref_id
$ref_id
Definition:
ltiauth.php:65
ILIAS\FileDelivery\http
static http()
Fetches the global http state from ILIAS.
Definition:
HttpServiceAware.php:55
Factory
ilLinkResourceHandlerGUI\$access
ilAccessHandler $access
Definition:
class.ilLinkResourceHandlerGUI.php:37
ilObject2GUI\REPOSITORY_NODE_ID
const REPOSITORY_NODE_ID
Definition:
class.ilObject2GUI.php:46
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
ilAccessHandler
ilLinkResourceHandlerGUI\$navigationHistory
ilNavigationHistory $navigationHistory
Definition:
class.ilLinkResourceHandlerGUI.php:38
$DIC
global $DIC
Definition:
shib_login.php:26
ilNavigationHistory
Last visited history for repository items.
Definition:
class.ilNavigationHistory.php:26
ilLinkResourceHandlerGUI\$lng
ilLanguage $lng
Definition:
class.ilLinkResourceHandlerGUI.php:36
ilLinkResourceHandlerGUI\$tpl
ilGlobalTemplateInterface $tpl
Definition:
class.ilLinkResourceHandlerGUI.php:39
ilCtrlInterface
ilLinkResourceHandlerGUI\__construct
__construct()
Definition:
class.ilLinkResourceHandlerGUI.php:41
components
ILIAS
WebResource
classes
class.ilLinkResourceHandlerGUI.php
Generated on Sun Aug 31 2025 23:04:21 for ILIAS by
1.8.13 (using
Doxyfile
)