ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjCategoryReferenceAccess.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
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}
static _getCommands()
get commands
static _getCommands(?int $a_ref_id=null)
get commands
global $DIC
Definition: shib_login.php:26