ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 }
Class ilObjSurveyQuestionPoolAccess.
global $DIC
Definition: goto.php:24