ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjCmiXapiVerificationAccess.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
31{
35 public static function _getCommands(): array
36 {
37 $commands = [];
38 $commands[] = [
39 "permission" => "read",
40 "cmd" => "view",
41 "lang_var" => "show",
42 "default" => true
43 ];
44 return $commands;
45 }
46
47 public static function _checkGoto(string $a_target): bool
48 {
49 global $ilAccess;
50
51 $t_arr = explode("_", $a_target);
52
53 // #11021
54 // personal workspace context: do not force normal login
55 if (isset($t_arr[2]) && $t_arr[2] == "wsp") {
56 return ilSharedResourceGUI::hasAccess((int) $t_arr[1]);
57 }
58 return (bool) $ilAccess->checkAccess("read", "", $t_arr[1]);
59 }
60}
return true
static _checkGoto(string $a_target)
check whether goto script will succeed
Class ilObjectAccess.
static hasAccess(int $a_node_id, bool $a_is_portfolio=false)