ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
5include_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}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjMediaPoolAccess.
static _checkGoto($a_target)
check whether goto script will succeed
static _getCommands()
get commands
Class ilObjectAccess.
$DIC
Definition: xapitoken.php:46