ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjTestVerificationAccess Class Reference

Class ilObjTestVerificationAccess. More...

+ Inheritance diagram for ilObjTestVerificationAccess:
+ Collaboration diagram for ilObjTestVerificationAccess:

Static Public Member Functions

static _getCommands ()
 
static _checkGoto ($a_target)
 
- 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

◆ _checkGoto()

static ilObjTestVerificationAccess::_checkGoto (   $a_target)
static

Definition at line 34 of file class.ilObjTestVerificationAccess.php.

References $DIC, and ilSharedResourceGUI\hasAccess().

34  : bool
35  {
36  global $DIC;
37  $ilAccess = $DIC['ilAccess'];
38 
39  $t_arr = explode('_', $a_target);
40 
41  // #11021
42  // personal workspace context: do not force normal login
43  if (isset($t_arr[2]) && $t_arr[2] === 'wsp') {
44  return ilSharedResourceGUI::hasAccess((int) $t_arr[1]);
45  }
46 
47  if ($ilAccess->checkAccess('read', '', (int) $t_arr[1])) {
48  return true;
49  }
50 
51  return false;
52  }
global $DIC
Definition: shib_login.php:22
static hasAccess(int $a_node_id, bool $a_is_portfolio=false)
+ Here is the call graph for this function:

◆ _getCommands()

static ilObjTestVerificationAccess::_getCommands ( )
static

Definition at line 27 of file class.ilObjTestVerificationAccess.php.

Referenced by ilObjTestVerificationListGUI\init().

27  : array
28  {
29  $commands = [];
30  $commands[] = ['permission' => 'read', 'cmd' => 'view', 'lang_var' => 'show', 'default' => true];
31  return $commands;
32  }
+ Here is the caller graph for this function:

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