ILIAS  release_8 Revision v8.24
class.ilObjMediaPoolAccess.php
Go to the documentation of this file.
1<?php
2
25{
26 public static function _getCommands(): array
27 {
28 $commands = array(
29 array("permission" => "read", "cmd" => "", "lang_var" => "show",
30 "default" => true),
31 array("permission" => "write", "cmd" => "", "lang_var" => "edit_content",
32 "default" => false),
33 array("permission" => "write", "cmd" => "edit", "lang_var" => "settings",
34 "default" => false)
35 );
36
37 return $commands;
38 }
39
43 public static function _checkGoto(string $target): bool
44 {
45 global $DIC;
46
47 $ilAccess = $DIC->access();
48
49 $t_arr = explode("_", $target);
50
51 if ($ilAccess->checkAccess("read", "", $t_arr[1]) ||
52 $ilAccess->checkAccess("visible", "", $t_arr[1])) {
53 return true;
54 }
55 return false;
56 }
57}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _checkGoto(string $target)
check whether goto script will succeed
static _getCommands()
get commands
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28