ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjCategoryAccess Class Reference

Class ilObjCategoryAccess. More...

+ Inheritance diagram for ilObjCategoryAccess:
+ Collaboration diagram for ilObjCategoryAccess:

Static Public Member Functions

static _getCommands ()
 get commands More...
 
static _checkGoto (string $target)
 check whether goto script will succeed 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

Class ilObjCategoryAccess.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 26 of file class.ilObjCategoryAccess.php.

Member Function Documentation

◆ _checkGoto()

static ilObjCategoryAccess::_checkGoto ( string  $target)
static

check whether goto script will succeed

Definition at line 61 of file class.ilObjCategoryAccess.php.

References $DIC.

61  : bool
62  {
63  global $DIC;
64 
65  $ilAccess = $DIC->access();
66 
67  $t_arr = explode("_", $target);
68 
69  if ($t_arr[0] !== "cat" || ((int) $t_arr[1]) <= 0) {
70  return false;
71  }
72 
73  if ($ilAccess->checkAccess("read", "", (int) $t_arr[1]) ||
74  $ilAccess->checkAccess("visible", "", (int) $t_arr[1])) {
75  return true;
76  }
77  return false;
78  }
global $DIC
Definition: shib_login.php:22

◆ _getCommands()

static ilObjCategoryAccess::_getCommands ( )
static

get commands

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 40 of file class.ilObjCategoryAccess.php.

References ilDAVActivationChecker\_isActive().

Referenced by ilObjCategoryReferenceAccess\_getCommands(), and ilObjCategoryListGUI\init().

40  : array
41  {
42  $commands = [];
43  $commands[] = ["permission" => "read", "cmd" => "render", "lang_var" => "show", "default" => true];
44 
45 
46  // BEGIN WebDAV
48  $webdav_obj = new ilObjWebDAV();
49  $commands[] = $webdav_obj->retrieveWebDAVCommandArrayForActionMenu();
50  }
51  // END WebDAV
52  $commands[] = ["permission" => "write", "cmd" => "enableAdministrationPanel", "lang_var" => "edit_content"];
53  $commands[] = ["permission" => "write", "cmd" => "edit", "lang_var" => "settings"];
54 
55  return $commands;
56  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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