ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilObjMediaPoolAccess.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/Object/classes/class.ilObjectAccess.php");
6 
17 {
18 
31  function _getCommands()
32  {
33  $commands = array
34  (
35  array("permission" => "read", "cmd" => "", "lang_var" => "show",
36  "default" => true),
37  array("permission" => "write", "cmd" => "", "lang_var" => "edit_content",
38  "default" => false),
39  array("permission" => "write", "cmd" => "edit", "lang_var" => "settings",
40  "default" => false)
41  );
42 
43  return $commands;
44  }
45 
46 
50  function _checkGoto($a_target)
51  {
52  global $ilAccess;
53 
54  $t_arr = explode("_", $a_target);
55 
56  if ($ilAccess->checkAccess("read", "", $t_arr[1]) ||
57  $ilAccess->checkAccess("visible", "", $t_arr[1]))
58  {
59  return true;
60  }
61  return false;
62  }
63 
64 }
65 
66 ?>