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

Class ilObjSCORMVerificationAccess. More...

+ Inheritance diagram for ilObjSCORMVerificationAccess:
+ Collaboration diagram for ilObjSCORMVerificationAccess:

Static Public Member Functions

static _getCommands ()
 
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)
 
 canBeDelivered (ilWACPath $ilWACPath)
 

Detailed Description

Member Function Documentation

◆ _checkGoto()

static ilObjSCORMVerificationAccess::_checkGoto ( string  $target)
static

check whether goto script will succeed

Reimplemented from ilObjectAccess.

Definition at line 37 of file class.ilObjSCORMVerificationAccess.php.

37 : bool
38 {
39 global $DIC;
40 $ilAccess = $DIC->access();
41
42 $t_arr = explode('_', $target);
43
44 // #11021
45 // personal workspace context: do not force normal login
46 if (isset($t_arr[2]) && $t_arr[2] === 'wsp') {
47 return ilSharedResourceGUI::hasAccess((int) $t_arr[1]);
48 }
49
50 if ($ilAccess->checkAccess('read', '', (int) $t_arr[1])) {
51 return true;
52 }
53
54 return false;
55 }
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 ilObjSCORMVerificationAccess::_getCommands ( )
static
Returns
array<int, array<string, string|bool>>

Reimplemented from ilObjectAccess.

Definition at line 30 of file class.ilObjSCORMVerificationAccess.php.

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

Referenced by ilObjSCORMVerificationListGUI\init().

+ Here is the caller graph for this function:

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