33 $this->
user = $DIC->user();
34 $this->
lng = $DIC->language();
35 $this->rbacsystem =
$DIC->rbac()->system();
36 $this->
access = $DIC->access();
43 array(
"permission" =>
"read",
"cmd" =>
"view",
"lang_var" =>
"show",
45 array(
"permission" =>
"write",
"cmd" =>
"editSettings",
"lang_var" =>
"settings")
65 if (!self::_lookupOnline($obj_id)
74 if (!self::_lookupOnline($obj_id)) {
81 switch ($permission) {
84 if (self::_isOffline($obj_id) &&
91 if (!
$info->isGranted()) {
105 $ilAccess =
$DIC->access();
107 $t_arr = explode(
"_", $target);
109 if ($t_arr[0] !==
"wiki" || (((
int) $t_arr[1]) <= 0) && $t_arr[1] !==
"wpage") {
113 if ($t_arr[1] ===
"wpage") {
114 $wpg_id = (
int) $t_arr[2];
116 if ((
int) ($t_arr[3] ?? 0) > 0) {
117 $refs = array((
int) $t_arr[3]);
121 foreach ($refs as $r) {
122 if ($ilAccess->checkAccess(
"read",
"", (
int) $r) ||
123 $ilAccess->checkAccess(
"visible",
"", (
int) $r)) {
127 } elseif ($ilAccess->checkAccess(
"read",
"", (
int) $t_arr[1]) ||
128 $ilAccess->checkAccess(
"visible",
"", (
int) $t_arr[1])) {
146 foreach ($a_ids as
$id) {
162 $q =
"SELECT * FROM il_wiki_data WHERE id = " .
163 $ilDB->quote($a_id,
"integer");
165 $wk_rec =
$ilDB->fetchAssoc($wk_set);
167 return (
bool) $wk_rec[
"public_files"];
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupOnlineStatus(array $a_ids)
see legacyOnlineFilter in ilContainer
_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::checkAcc...
static _lookupPublicFiles(int $a_id)
Check wether files should be public.
static _lookupOnline(int $a_id)
static _getCommands()
get commands
static _checkGoto(string $target)
check whether goto script will succeed
static _isOffline(int $obj_id)
Type-specific implementation of general status, has to be overwritten if object type does not support...
static _getAllReferences(int $id)
get all reference ids for object ID
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
checkAccessOfUser(int $a_user_id, string $a_operations, int $a_ref_id, string $a_type="")
static lookupWikiId(int $a_page_id)
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...