ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
5include_once("./Services/Object/classes/class.ilObjectAccess.php");
6
16{
29 public static function _getCommands()
30 {
31 $commands = array();
32 $commands[] = array("permission" => "read", "cmd" => "view", "lang_var" => "show", "default" => true);
33 return $commands;
34 }
35
36 public static function _checkGoto($a_target)
37 {
38 global $DIC;
39
40 $ilAccess = $DIC->access();
41
42 $t_arr = explode("_", $a_target);
43
44 // #11021
45 // personal workspace context: do not force normal login
46 if (isset($t_arr[2]) && $t_arr[2] == "wsp") {
47 include_once "Services/PersonalWorkspace/classes/class.ilSharedResourceGUI.php";
48 return ilSharedResourceGUI::hasAccess($t_arr[1]);
49 }
50
51 if ($ilAccess->checkAccess("read", "", $t_arr[1])) {
52 return true;
53 }
54 return false;
55 }
56}
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)
global $DIC
Definition: saml.php:7