ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  public static function _getCommands()
32  {
33  $commands = array(
34  array("permission" => "read", "cmd" => "", "lang_var" => "show",
35  "default" => true),
36  array("permission" => "write", "cmd" => "", "lang_var" => "edit_content",
37  "default" => false),
38  array("permission" => "write", "cmd" => "edit", "lang_var" => "settings",
39  "default" => false)
40  );
41 
42  return $commands;
43  }
44 
45 
49  public static function _checkGoto($a_target)
50  {
51  global $DIC;
52 
53  $ilAccess = $DIC->access();
54 
55  $t_arr = explode("_", $a_target);
56 
57  if ($ilAccess->checkAccess("read", "", $t_arr[1]) ||
58  $ilAccess->checkAccess("visible", "", $t_arr[1])) {
59  return true;
60  }
61  return false;
62  }
63 }
global $DIC
Definition: saml.php:7
static _getCommands()
get commands
Class ilObjMediaPoolAccess.
Class ilObjectAccess.
static _checkGoto($a_target)
check whether goto script will succeed