ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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}
User class.
Class ilObjectAccess.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _checkGoto(string $target)
check whether goto script will succeed
static _getCommands()
get commands
_checkCondition(int $a_obj_id, string $a_operator, $a_value, int $a_usr_id=0)
check condition
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
global $DIC
Definition: shib_login.php:26