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

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

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 ilObjCourseVerificationAccess

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.ilObjCourseVerificationAccess.php.

Member Function Documentation

◆ _checkGoto()

static ilObjCourseVerificationAccess::_checkGoto (   $a_target)
static

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

References $DIC, and ilSharedResourceGUI\hasAccess().

34  : bool
35  {
36  global $DIC;
37 
38  $ilAccess = $DIC->access();
39 
40  $t_arr = explode('_', $a_target);
41 
42  // #11021
43  // personal workspace context: do not force normal login
44  if (isset($t_arr[2]) && $t_arr[2] === 'wsp') {
45  return ilSharedResourceGUI::hasAccess((int) $t_arr[1]);
46  }
47  return (bool) $ilAccess->checkAccess('read', '', (int) $t_arr[1]);
48  }
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 ilObjCourseVerificationAccess::_getCommands ( )
static

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

Referenced by ilObjCourseVerificationListGUI\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: