5include_once(
"./Services/Awareness/classes/class.ilAwarenessUserProvider.php");
 
   26        $this->db = 
$DIC->database();
 
   36        return "mmbr_user_grpcrs";
 
   46        $this->lng->loadLanguageModule(
"mmbr");
 
   47        return $this->lng->txt(
"mmbr_awrn_my_groups_courses");
 
   57        $this->lng->loadLanguageModule(
"crs");
 
   58        return $this->lng->txt(
"mmbr_awrn_my_groups_courses_info");
 
   73            "SELECT DISTINCT usr_id FROM obj_members " .
 
   74            " WHERE " . 
$ilDB->in(
"obj_id", $groups_and_courses_of_user, 
false, 
"integer") . 
' ' .
 
   75            'AND (admin > ' . 
$ilDB->quote(0, 
'integer') . 
' ' .
 
   76            'OR tutor > ' . 
$ilDB->quote(0, 
'integer') . 
' ' .
 
   77            'OR member > ' . 
$ilDB->quote(0, 
'integer') . 
")" 
   80        while ($rec = 
$ilDB->fetchAssoc($set)) {
 
   81            $ub[] = $rec[
"usr_id"];
 
An exception for terminatinating execution or to throw for unit testing.
All members of the same courses/groups as the user.
__construct()
Constructor.
getInfo()
Provider info (used in administration settings)
getTitle()
Provider title (used in awareness overlay and in administration settings)
getProviderId()
Get provider id.
getInitialUserSet()
Get initial set of users.
A class that provides a collection of users for the awareness tool.
static _getMembershipByType($a_usr_id, $a_type, $a_only_member_role=false)
get membership by type Get course or group membership
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc