ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjCategoryReferenceAccess Class Reference
+ Inheritance diagram for ilObjCategoryReferenceAccess:
+ Collaboration diagram for ilObjCategoryReferenceAccess:

Static Public Member Functions

static _getCommands (?int $a_ref_id=null)
 get commands More...
 
- Static Public Member Functions inherited from ilContainerReferenceAccess
static _isAccessible (int $a_ref_id)
 Check if target is accessible and not deleted. More...
 
- Static Public Member Functions inherited from ilObjectAccess
static _getCommands ()
 get commands More...
 
static _checkGoto (string $target)
 check whether goto script will succeed More...
 
static _isOffline (int $obj_id)
 Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More...
 
static _preloadData (array $obj_ids, array $ref_ids)
 Preload data. More...
 

Additional Inherited Members

- Public Member Functions inherited from ilObjectAccess
 _checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
 Checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More...
 
 canBeDelivered (ilWACPath $ilWACPath)
 

Detailed Description

Member Function Documentation

◆ _getCommands()

static ilObjCategoryReferenceAccess::_getCommands ( ?int  $a_ref_id = null)
static

get commands

Depends on permissions

Parameters
int$a_ref_idReference id of course link

this method returns an array of all possible commands/permission combinations

example: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), );

Definition at line 42 of file class.ilObjCategoryReferenceAccess.php.

References $DIC, and ilObjCategoryAccess\_getCommands().

42  : 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  }
global $DIC
Definition: shib_login.php:22
static _getCommands()
get commands
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: