30 $this->
user = $DIC->user();
31 $this->
lng = $DIC->language();
32 $this->rbacsystem = $DIC->rbac()->system();
33 $this->
access = $DIC->access();
47 switch ($permission) {
49 if (!self::_lookupOnline($obj_id)
57 if (!self::_lookupOnline($obj_id) &&
72 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
74 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"edit_content"),
75 array(
"permission" =>
"edit_content",
"cmd" =>
"edit",
"lang_var" =>
"edit_content"),
76 array(
"permission" =>
"write",
"cmd" =>
"properties",
"lang_var" =>
"settings")
88 return !self::_isOffline($a_id);
94 foreach ($a_ids as
$id) {
95 $status[
$id] = !self::_isOffline($id);
106 $ilAccess = $DIC->access();
108 $t_arr = explode(
"_", $target);
110 if (($t_arr[0] !=
"glo" && $t_arr[0] !=
"git") || ((
int) $t_arr[1]) <= 0) {
114 if ($t_arr[0] ==
"glo") {
115 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
116 $ilAccess->checkAccess(
"visible",
"", $t_arr[1])) {
121 if ($t_arr[0] ==
"git") {
122 if ((
int) ($t_arr[2] ?? 0) > 0) {
123 $ref_ids = array($t_arr[2]);
130 foreach ($ref_ids as
$ref_id) {
132 if ($ilAccess->checkAccess(
"read",
"", $ref_id)) {
const IL_NO_OBJECT_ACCESS
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _getAllReferences(int $id)
get all reference ids for object ID
static _lookupOnlineStatus(array $a_ids)
checkAccessOfUser(int $a_user_id, string $a_operations, int $a_ref_id, string $a_type="")
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
_checkAccess(string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
static _checkGoto(string $target)
static _lookupOnline(int $a_id)
static _lookGlossaryID(int $term_id)
get glossary id form term id