34 $this->
user = $DIC->user();
35 $this->
lng = $DIC->language();
36 $this->rbacsystem = $DIC->rbac()->system();
37 $this->
access = $DIC->access();
43 array(
"permission" =>
"read",
"cmd" =>
"preview",
"lang_var" =>
"preview",
"default" =>
true),
44 array(
"permission" =>
"write",
"cmd" =>
"view",
"lang_var" =>
"edit_content"),
45 array(
"permission" =>
"write",
"cmd" =>
"edit",
"lang_var" =>
"settings"),
46 array(
"permission" =>
"read",
"cmd" =>
"createfromtemplate",
"lang_var" =>
"prtf_create_portfolio_from_template"),
66 if (!self::_lookupOnline($obj_id)
75 if (!self::_lookupOnline($obj_id)) {
83 switch ($permission) {
86 if (!self::_lookupOnline($obj_id) &&
99 return !self::_isOffline($a_id);
108 foreach ($a_ids as
$id) {
109 $status[
$id] = !self::_isOffline($id);
122 $ilAccess = $DIC->access();
124 $t_arr = explode(
"_", $target);
126 if ($t_arr[0] !==
"prtt" || ((
int) $t_arr[1]) <= 0) {
130 if ($ilAccess->checkAccess(
"read",
"", $t_arr[1]) ||
131 $ilAccess->checkAccess(
"visible",
"", $t_arr[1])) {
const IL_NO_OBJECT_ACCESS
static _lookupOnlineStatus(array $a_ids)
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 _lookupOnline(int $a_id)
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
_checkAccess(string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
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