5 include_once
"Services/Object/classes/class.ilObjectLP.php";
46 include_once
'Modules/Group/classes/class.ilGroupParticipants.php';
48 return $member_obj->getMembers();
57 $query =
" SELECT DISTINCT obd.obj_id, obd.type, obd2.title" .
59 " JOIN rbac_fa fa ON (ua.rol_id = fa.rol_id)" .
60 " JOIN object_reference obr ON (fa.parent = obr.ref_id)" .
61 " JOIN object_data obd ON (obr.obj_id = obd.obj_id)" .
62 " JOIN object_data obd2 ON (ua.rol_id = obd2.obj_id)" .
63 " WHERE obd.type = " . $ilDB->quote(
"grp",
"text") .
64 " AND fa.assign = " . $ilDB->quote(
"y",
"text") .
65 " AND ua.usr_id = " . $ilDB->quote($a_usr_id,
"integer") .
66 " AND " . $ilDB->in(
"obd.obj_id", $a_obj_ids,
"",
"integer");
67 $set = $ilDB->query(
$query);
68 while (
$row = $ilDB->fetchAssoc($set)) {
69 $role =
$row[
"title"];
70 if (!stristr($role,
"il_" .
$row[
"type"] .
"_admin_") &&
71 !stristr($role,
"il_" .
$row[
"type"] .
"_tutor_")) {
72 $a_res[
$row[
"obj_id"]] =
true;
const LP_MODE_MANUAL_BY_TUTOR
static isLPMember(array &$a_res, $a_usr_id, $a_obj_ids)
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
Create styles array
The data for the language used.
const LP_MODE_DEACTIVATED
getMembers($a_search=true)
static getDefaultModes($a_lp_active)