ILIAS  release_8 Revision v8.24
class.ilObjSurveyQuestionPoolAccess.php
Go to the documentation of this file.
1<?php
2
24{
25 public static function _getCommands(): array
26 {
27 $commands = array(
28 array("permission" => "read", "cmd" => "questions", "lang_var" => "edit_questions",
29 "default" => true),
30 array("permission" => "write", "cmd" => "questions", "lang_var" => "edit_questions"),
31 array("permission" => "write", "cmd" => "properties", "lang_var" => "settings")
32 );
33
34 return $commands;
35 }
36
37 public static function _checkGoto(string $target): bool
38 {
39 global $DIC;
40
41 $ilAccess = $DIC->access();
42
43 $t_arr = explode("_", $target);
44
45 if ($ilAccess->checkAccess("visible", "", $t_arr[1]) ||
46 $ilAccess->checkAccess("read", "", $t_arr[1])) {
47 return true;
48 }
49 return false;
50 }
51}
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...
global $DIC
Definition: feed.php:28