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) &&
108 foreach ($a_ids as
$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])) {
$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 _checkGoto(string $target)
check whether goto script will succeed
static _lookupOnlineStatus(array $a_ids)
_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 _lookupOnline(int $a_id)
static _getCommands()
get commands
static _isOffline(int $obj_id)
Type-specific implementation of general status, has to be overwritten if object type does not support...
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="")
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...