ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjectPluginAccess.php
Go to the documentation of this file.
1 <?php
2 
25 {
26  protected ilObjUser $user;
28 
29  public function __construct()
30  {
31  global $DIC;
32 
33  $this->user = $DIC->user();
34  $this->access = $DIC->access();
35  }
36 
42  public function _checkCondition(int $a_obj_id, string $a_operator, $a_value, int $a_usr_id = 0): bool
43  {
44  return true;
45  }
46 
50  public static function _checkGoto(string $target): bool
51  {
52  global $DIC;
53 
54  $ilAccess = $DIC->access();
55 
56  $t_arr = explode("_", $target);
57 
58  if ($ilAccess->checkAccess("read", "", (int) $t_arr[1])) {
59  return true;
60  }
61  return false;
62  }
63 
64  // this is called by permission -> check permissions of user screen
65  public static function _getCommands(): array
66  {
67  return [];
68  }
69 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
static _checkGoto(string $target)
check whether goto script will succeed
_checkCondition(int $a_obj_id, string $a_operator, $a_value, int $a_usr_id=0)
check condition