ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilObjExerciseVerificationAccess.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4
13{
26 public static function _getCommands()
27 {
28 $commands = array();
29 $commands[] = array("permission" => "read", "cmd" => "view", "lang_var" => "show", "default" => true);
30 return $commands;
31 }
32
33 public static function _checkGoto($a_target)
34 {
35 global $DIC;
36
37 $ilAccess = $DIC->access();
38
39 $t_arr = explode("_", $a_target);
40
41 // #11021
42 // personal workspace context: do not force normal login
43 if (isset($t_arr[2]) && $t_arr[2] == "wsp") {
44 return ilSharedResourceGUI::hasAccess($t_arr[1]);
45 }
46
47 if ($ilAccess->checkAccess("read", "", $t_arr[1])) {
48 return true;
49 }
50 return false;
51 }
52}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjExerciseVerificationAccess.
static _checkGoto($a_target)
check whether goto script will succeed
Class ilObjectAccess.
static hasAccess($a_node_id, $a_is_portfolio=false)
$DIC
Definition: xapitoken.php:46