5 include_once
"Services/Object/classes/class.ilObjectLP.php";
57 return parent::getCurrentMode();
62 include_once
"Modules/Course/classes/class.ilObjCourse.php";
76 include_once(
"./Modules/Course/classes/class.ilObjCourse.php");
79 return $lng->txt(
"crs_status_determination_lp_info");
85 include_once
"Modules/Course/classes/class.ilCourseParticipants.php";
87 return $member_obj->getMembers();
90 protected static function isLPMember(array &$a_res, $a_usr_id, $a_obj_ids)
98 $query =
" SELECT DISTINCT obd.obj_id, obd.type, obd2.title" .
100 " JOIN rbac_fa fa ON (ua.rol_id = fa.rol_id)" .
101 " JOIN object_reference obr ON (fa.parent = obr.ref_id)" .
102 " JOIN object_data obd ON (obr.obj_id = obd.obj_id)" .
103 " JOIN object_data obd2 ON (ua.rol_id = obd2.obj_id)" .
104 " WHERE obd.type = " .
$ilDB->quote(
"crs",
"text") .
105 " AND fa.assign = " .
$ilDB->quote(
"y",
"text") .
106 " AND ua.usr_id = " .
$ilDB->quote($a_usr_id,
"integer") .
107 " AND " .
$ilDB->in(
"obd.obj_id", $a_obj_ids,
"",
"integer");
110 $role =
$row[
"title"];
111 if (!stristr($role,
"il_" .
$row[
"type"] .
"_admin_") &&
112 !stristr($role,
"il_" .
$row[
"type"] .
"_tutor_")) {
113 $a_res[
$row[
"obj_id"]] =
true;
122 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
const LP_MODE_DEACTIVATED
static getDefaultModes($a_lp_active)
getMembers($a_search=true)