ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
◀ ilDoc Overview
class.ilObjLTIToolVerificationAccess.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
26
class
ilObjLTIToolVerificationAccess
extends
ilObjectAccess
27
{
31
public
static
function
_getCommands
(): array
32
{
33
return
[
34
[
35
'permission'
=>
'read'
,
36
'cmd'
=>
'view'
,
37
'lang_var'
=>
'show'
,
38
'default'
=>
true
,
39
],
40
];
41
}
42
43
public
static
function
_checkGoto
(
string
$target
): bool
44
{
45
global
$DIC
;
46
47
$parts = explode(
'_'
,
$target
);
48
49
// a verification shared in the personal workspace is read without the usual repository login
50
if
(($parts[2] ??
''
) ===
'wsp'
) {
51
return
ilSharedResourceGUI::hasAccess
((
int
) $parts[1]);
52
}
53
54
return
$DIC
->access()->checkAccess(
'read'
,
''
, (
int
) $parts[1]);
55
}
56
}
ilObjLTIToolVerificationAccess
Access checks of the object type ltiv.
Definition:
class.ilObjLTIToolVerificationAccess.php:27
ilObjLTIToolVerificationAccess\_checkGoto
static _checkGoto(string $target)
check whether goto script will succeed
Definition:
class.ilObjLTIToolVerificationAccess.php:43
ilObjLTIToolVerificationAccess\_getCommands
static _getCommands()
Definition:
class.ilObjLTIToolVerificationAccess.php:31
ilObjectAccess
Class ilObjectAccess.
Definition:
class.ilObjectAccess.php:32
ilSharedResourceGUI\hasAccess
static hasAccess(int $a_node_id, bool $a_is_portfolio=false)
Definition:
class.ilSharedResourceGUI.php:168
ILIAS\Scripts\PHPStan\$target
$target
Definition:
list_exemptions.php:50
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
LTI
classes
Object
Verification
class.ilObjLTIToolVerificationAccess.php
Generated on Wed Nov 11 2026 23:08:06 for ILIAS by
1.9.4 (using
Doxyfile
)