ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilObjSurveyQuestionPoolAccess.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
13{
14
28 public static function _getCommands()
29 {
30 $commands = array(
31 array("permission" => "read", "cmd" => "questions", "lang_var" => "edit_questions",
32 "default" => true),
33 array("permission" => "write", "cmd" => "questions", "lang_var" => "edit_questions"),
34 array("permission" => "write", "cmd" => "properties", "lang_var" => "settings")
35 );
36
37 return $commands;
38 }
39
40 public static function _checkGoto($a_target)
41 {
42 global $DIC;
43
44 $ilAccess = $DIC->access();
45
46 $t_arr = explode("_", $a_target);
47
48 if ($ilAccess->checkAccess("visible", "", $t_arr[1]) ||
49 $ilAccess->checkAccess("read", "", $t_arr[1])) {
50 return true;
51 }
52 return false;
53 }
54}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjSurveyQuestionPoolAccess.
static _checkGoto($a_target)
check whether goto script will succeed
Class ilObjectAccess.
$DIC
Definition: xapitoken.php:46