4 include_once
"Services/Object/classes/class.ilObjectLP.php";
45 include_once
'./Modules/Test/classes/class.ilObjTest.php';
54 $this->testObj =
$test;
67 require_once
'Services/Object/classes/class.ilObjectFactory.php';
70 $testOBJ->removeTestResultsByUserIds($a_user_ids);
73 $test_ref_id = (int)$_REQUEST[
"ref_id"];
74 if($this->testObj && $this->testObj->getRefId())
76 $test_ref_id = $this->testObj->getRefId();
80 require_once
"Modules/Course/classes/Objectives/class.ilLOSettings.php";
87 require_once
"Modules/Course/classes/Objectives/class.ilLOUserResults.php";
88 include_once
'./Modules/Course/classes/Objectives/class.ilLOTestAssignments.php';
92 ($lo_settings->getInitialTest() == $test_ref_id),
93 ($lo_settings->getQualifiedTest() == $test_ref_id),
98 require_once
"Services/Tracking/classes/class.ilLPStatusFactory.php";
100 if (strtolower(get_class($lp_status)) !=
"illpstatus")
102 foreach($a_user_ids as $user_id)
104 $lp_status->_updateStatus($course_obj_id, $user_id);
116 $set = $ilDB->query(
"SELECT tt.obj_fi".
117 " FROM tst_active ta".
118 " JOIN tst_tests tt ON (ta.test_fi = tt.test_id)".
119 " WHERE ".$ilDB->in(
"tt.obj_fi", (
array)$a_obj_ids,
"",
"integer").
120 " AND ta.user_fi = ".$ilDB->quote($a_usr_id,
"integer"));
121 while(
$row = $ilDB->fetchAssoc($set))
123 $a_res[
$row[
"obj_fi"]] =
true;
static getInstanceByObjId($a_obj_id)
get singleton instance
static isObjectiveTest($a_trst_ref_id)
Check if test ref_id is used in an objective course.
const LP_MODE_TEST_FINISHED
static _lookupAnonymity($a_obj_id)
Returns the anonymity status of a test with a given object id.
resetCustomLPDataForUserIds(array $a_user_ids, $a_recursive=true)
const LP_MODE_TEST_PASSED
static _getInstance($a_obj_id, $a_mode=NULL)
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
Create styles array
The data for the language used.
static lookupObjectivesForTest($a_test_ref_id)
Get all objectives that are assigned to given test.
setTestObject(\ilObjTest $test)
static isLPMember(array &$a_res, $a_usr_id, $a_obj_ids)
const LP_MODE_DEACTIVATED
static getDefaultModes($a_lp_active)
static deleteResultsFromLP($a_course_id, array $a_user_ids, $a_remove_initial, $a_remove_qualified, array $a_objective_ids)
Delete all (qualified) result entries for course members.