30 protected \ilLanguage
$lng;
31 protected \ILIAS\Awareness\StandardGUIRequest
$request;
32 protected \ILIAS\DI\RBACServices
$rbac;
33 protected \ilDBInterface
$db;
39 $this->db =
$DIC->database();
40 $this->tree =
$DIC->repositoryTree();
44 $this->request =
$DIC->awareness()
65 $this->
lng->loadLanguageModule(
"crs");
66 return $this->
lng->txt(
"crs_awrn_current_course");
75 $this->
lng->loadLanguageModule(
"crs");
76 return $this->
lng->txt(
"crs_awrn_current_course_info");
89 $rbacreview = $this->
rbac->review();
95 $ref_id = $this->request->getRefId();
98 foreach (
$path as $p) {
99 if ($p[
"type"] ==
"crs" &&
100 ($ilAccess->checkAccess(
"write",
"", $p[
"child"]) ||
102 $lrol = $rbacreview->getRolesOfRoleFolder($p[
"child"],
false);
103 $set =
$ilDB->query(
'SELECT DISTINCT(usr_id) FROM rbac_ua ' .
104 'WHERE ' .
$ilDB->in(
'rol_id', $lrol,
false,
'integer'));
109 while ($rec =
$ilDB->fetchAssoc($set)) {
110 $ub[] = $rec[
"usr_id"];
112 $awrn_logger->debug(
"ilAwarenessUserProviderCurrentCourse: obj_id: " . $p[
"obj_id"] .
", " .
113 "Collected User: " . $rec[
"usr_id"]);
All members of the same courses/groups as the user.
getInfo()
Provider info (used in administration settings)
isHighlighted()
Is highlighted.
ILIAS DI RBACServices $rbac
__construct(Container $DIC)
ILIAS Awareness StandardGUIRequest $request
getTitle()
Provider title (used in awareness overlay and in administration settings)
getProviderId()
Get provider id.
getInitialUserSet(?array $user_ids=null)
Get initial set of users.
Customizing of pimple-DIC for ILIAS.
access()
Get interface for access checks.
language()
Get interface to the i18n service.
rbac()
Get interface to get interfaces to all things rbac.
static getLogger(string $a_component_id)
Get component logger.
static lookupShowMembersEnabled(int $a_obj_id)
getPathFull(int $a_endnode_id, int $a_startnode_id=0)
get path from a given startnode to a given endnode if startnode is not given the rootnode is startnod...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...