5 include_once(
"./Services/Awareness/classes/class.ilAwarenessUserProvider.php");
34 parent::__construct();
36 $this->db = $DIC->database();
37 $this->tree = $DIC->repositoryTree();
38 $this->access = $DIC->access();
39 $this->rbac = $DIC->rbac();
59 $this->lng->loadLanguageModule(
"crs");
60 return $this->lng->txt(
"crs_awrn_current_course");
70 $this->lng->loadLanguageModule(
"crs");
71 return $this->lng->txt(
"crs_awrn_current_course_info");
84 $rbacreview = $this->rbac->review();
92 if (is_array(
$path)) {
93 foreach (
$path as $p) {
94 include_once(
"./Modules/Course/classes/class.ilObjCourse.php");
95 if ($p[
"type"] ==
"crs" &&
96 ($ilAccess->checkAccess(
"write",
"", $p[
"child"]) ||
98 $lrol = $rbacreview->getRolesOfRoleFolder($p[
"child"],
false);
99 $set =
$ilDB->query(
'SELECT DISTINCT(usr_id) FROM rbac_ua ' .
100 'WHERE ' .
$ilDB->in(
'rol_id', $lrol,
false,
'integer'));
105 while ($rec =
$ilDB->fetchAssoc($set)) {
106 $ub[] = $rec[
"usr_id"];
108 $awrn_logger->debug(
"ilAwarenessUserProviderCurrentCourse: obj_id: " . $p[
"obj_id"] .
", " .
109 "Collected User: " . $rec[
"usr_id"]);
getTitle()
Provider title (used in awareness overlay and in administration settings)
A class that provides a collection of users for the awareness tool.
__construct()
Constructor.
static lookupShowMembersEnabled($a_obj_id)
Check if show member is enabled.
getInitialUserSet()
Get initial set of users.
getProviderId()
Get provider id.
All members of the same courses/groups as the user.
static getLogger($a_component_id)
Get component logger.
getInfo()
Provider info (used in administration settings)