ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjCategoryReferenceAccess Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e

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

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: feed.php:28
static _getCommands()
get commands
+ Here is the call graph for this function:

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