ILIAS  release_8 Revision v8.24
class.ilObjSCORMVerificationAccess.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
26{
30 public static function _getCommands(): array
31 {
32 $commands = [];
33 $commands[] = ['permission' => 'read', 'cmd' => 'view', 'lang_var' => 'show', 'default' => true];
34 return $commands;
35 }
36
37 public static function _checkGoto(string $target): bool
38 {
39 global $DIC;
40 $ilAccess = $DIC->access();
41
42 $t_arr = explode('_', $target);
43
44 // #11021
45 // personal workspace context: do not force normal login
46 if (isset($t_arr[2]) && $t_arr[2] === 'wsp') {
47 return ilSharedResourceGUI::hasAccess((int) $t_arr[1]);
48 }
49
50 if ($ilAccess->checkAccess('read', '', (int) $t_arr[1])) {
51 return true;
52 }
53
54 return false;
55 }
56}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _checkGoto(string $target)
check whether goto script will succeed
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static hasAccess(int $a_node_id, bool $a_is_portfolio=false)
global $DIC
Definition: feed.php:28