ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilObjCourseVerificationAccess.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
15{
28 public static function _getCommands()
29 {
30 $commands = array();
31 $commands[] = array("permission" => "read", "cmd" => "view", "lang_var" => "show", "default" => true);
32 return $commands;
33 }
34
35 public static function _checkGoto($a_target)
36 {
37 global $DIC;
38
39 $ilAccess = $DIC['ilAccess'];
40
41 $t_arr = explode("_", $a_target);
42
43 // #11021
44 // personal workspace context: do not force normal login
45 if (isset($t_arr[2]) && $t_arr[2] == "wsp") {
46 include_once "Services/PersonalWorkspace/classes/class.ilSharedResourceGUI.php";
47 return ilSharedResourceGUI::hasAccess($t_arr[1]);
48 }
49
50 if ($ilAccess->checkAccess("read", "", $t_arr[1])) {
51 return true;
52 }
53 return false;
54 }
55}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjCourseVerificationAccess.
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