5 include_once
"Services/Object/classes/class.ilObjectLP.php";
63 return parent::getCurrentMode();
68 include_once
"Modules/Course/classes/class.ilObjCourse.php";
81 include_once(
"./Modules/Course/classes/class.ilObjCourse.php");
85 return $lng->txt(
"crs_status_determination_lp_info");
91 include_once
"Modules/Course/classes/class.ilCourseParticipants.php";
93 return $member_obj->getMembers();
102 $query =
" SELECT DISTINCT obd.obj_id, obd.type, obd2.title".
104 " JOIN rbac_fa fa ON (ua.rol_id = fa.rol_id)".
105 " JOIN object_reference obr ON (fa.parent = obr.ref_id)".
106 " JOIN object_data obd ON (obr.obj_id = obd.obj_id)".
107 " JOIN object_data obd2 ON (ua.rol_id = obd2.obj_id)".
108 " WHERE obd.type = ".$ilDB->quote(
"crs",
"text").
109 " AND fa.assign = ".$ilDB->quote(
"y",
"text").
110 " AND ua.usr_id = ".$ilDB->quote($a_usr_id,
"integer").
111 " AND ".$ilDB->in(
"obd.obj_id", $a_obj_ids,
"",
"integer");
112 $set = $ilDB->query(
$query);
113 while(
$row = $ilDB->fetchAssoc($set))
115 $role =
$row[
"title"];
116 if(!stristr($role,
"il_".
$row[
"type"].
"_admin_") &&
117 !stristr($role,
"il_".
$row[
"type"].
"_tutor_"))
119 $a_res[
$row[
"obj_id"]] =
true;
128 include_once
'./Modules/Course/classes/class.ilCourseMailTemplateTutorContext.php';
const IL_CRS_VIEW_OBJECTIVE
const LP_MODE_MANUAL_BY_TUTOR
static _getInstanceByObjId($a_obj_id)
Get singleton instance.
static _lookupViewMode($a_id)
lookup view mode of container
static isLPMember(array &$a_res, $a_usr_id, $a_obj_ids)
const STATUS_DETERMINATION_LP
Create styles array
The data for the language used.
const LP_MODE_DEACTIVATED
static getDefaultModes($a_lp_active)
getMembers($a_search=true)