ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjTestVerificationAccess Class Reference

Class ilObjTestVerificationAccess. More...

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

Static Public Member Functions

static _getCommands ()
 get commands More...
 
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)
 
 canBeDelivered (ilWACPath $ilWACPath)
 

Detailed Description

Member Function Documentation

◆ _checkGoto()

static ilObjTestVerificationAccess::_checkGoto (   $a_target)
static

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

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 }
static hasAccess(int $a_node_id, bool $a_is_portfolio=false)
global $DIC
Definition: shib_login.php:26

References $DIC, and ilSharedResourceGUI\hasAccess().

+ Here is the call graph for this function:

◆ _getCommands()

static ilObjTestVerificationAccess::_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"), );

Returns
array{permission?:string, cmd?:string, lang_var?:string, default?:bool}[]

Reimplemented from ilObjectAccess.

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

27 : array
28 {
29 $commands = [];
30 $commands[] = ['permission' => 'read', 'cmd' => 'view', 'lang_var' => 'show', 'default' => true];
31 return $commands;
32 }

Referenced by ilObjTestVerificationListGUI\init().

+ Here is the caller graph for this function:

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