ILIAS  release_8 Revision v8.24
class.ilObjCategoryReferenceAccess.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
25{
42 public static function _getCommands(int $a_ref_id = null): array
43 {
44 global $DIC;
45
46 $ilAccess = $DIC->access();
47
48 if ($ilAccess->checkAccess('write', '', $a_ref_id)) {
49 // Only local (reference specific commands)
50 $commands = [
51 ["permission" => "visible", "cmd" => "", "lang_var" => "show", "default" => true],
52 ["permission" => "write", "cmd" => "editReference", "lang_var" => "settings"]
53 ];
54 } else {
56 }
57 return $commands;
58 }
59}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getCommands()
get commands
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getCommands(int $a_ref_id=null)
get commands
global $DIC
Definition: feed.php:28