ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjSCORMVerificationAccess 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 ilObjSCORMVerificationAccess:
+ Collaboration diagram for ilObjSCORMVerificationAccess:

Static Public Member Functions

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

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 Class ilObjSCORMVerificationAccess

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

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

Member Function Documentation

◆ _checkGoto()

static ilObjSCORMVerificationAccess::_checkGoto ( string  $target)
static

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

References $DIC, and ilSharedResourceGUI\hasAccess().

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  }
global $DIC
Definition: feed.php:28
static hasAccess(int $a_node_id, bool $a_is_portfolio=false)
+ Here is the call graph for this function:

◆ _getCommands()

static ilObjSCORMVerificationAccess::_getCommands ( )
static
Returns
array<int, array<string, string|bool>>

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

Referenced by ilObjSCORMVerificationListGUI\init().

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

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