ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 static 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 static 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?>
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.