27 $this->
object = $a_object;
39 $passOverwiewData = array();
43 $scoredPass = $this->
object->_getResultPass($active_id);
44 $lastPass = $this->
object->_getPass($active_id);
47 $testReachedPoints = 0;
52 $passFinishDate = $this->
object->getPassFinishDate($active_id,
$pass);
54 if( $passFinishDate <= 0 )
61 $resultData =& $this->
object->getTestResult($active_id,
$pass);
63 if (!$resultData[
"pass"][
"total_max_points"])
69 $passPercentage = ($resultData[
"pass"][
"total_reached_points"]/$resultData[
"pass"][
"total_max_points"])*100;
72 $passMaxPoints = $resultData[
"pass"][
"total_max_points"];
73 $passReachedPoints = $resultData[
"pass"][
"total_reached_points"];
75 $passAnsweredQuestions = $this->
object->getAnsweredQuestionCount($active_id,
$pass);
76 $passTotalQuestions = count($resultData) - 2;
78 if(
$pass == $scoredPass )
82 if (!$resultData[
"test"][
"total_max_points"])
88 $testPercentage = ($resultData[
"test"][
"total_reached_points"]/$resultData[
"test"][
"total_max_points"])*100;
91 $testMaxPoints = $resultData[
"test"][
"total_max_points"];
92 $testReachedPoints = $resultData[
"test"][
"total_reached_points"];
94 $passOverwiewData[
'test'] = array(
95 'active_id' => $active_id,
96 'scored_pass' => $scoredPass,
97 'max_points' => $testMaxPoints,
98 'reached_points' => $testReachedPoints,
99 'percentage' => $testPercentage
102 else $isScoredPass =
false;
104 $passOverwiewData[
'passes'][] = array(
105 'active_id' => $active_id,
107 'finishdate' => $passFinishDate,
108 'max_points' => $passMaxPoints,
109 'reached_points' => $passReachedPoints,
110 'percentage' => $passPercentage,
111 'answered_questions' => $passAnsweredQuestions,
112 'total_questions' => $passTotalQuestions,
113 'is_scored_pass' => $isScoredPass
118 return $passOverwiewData;
131 include_once
"./Modules/Test/classes/class.ilObjAssessmentFolder.php";
134 $testResultData = $this->
object->getTestResult($activeId,
$pass);
136 $manScoringQuestionGuiList = array();
138 foreach($testResultData as $questionData)
140 if( !isset($questionData[
'qid']) )
145 if( !isset($questionData[
'type']) )
150 $questionGUI = $this->
object->createQuestionGUI(
"", $questionData[
'qid']);
152 if( !in_array($questionGUI->object->getQuestionTypeID(), $manScoringQuestionTypes) )
157 $manScoringQuestionGuiList[ $questionData[
'qid'] ] = $questionGUI;
160 return $manScoringQuestionGuiList;
174 $assessmentSetting =
new ilSetting(
"assessment");
175 return $assessmentSetting->get(
"manscoring_done_" . $activeId,
false);
189 $assessmentSetting =
new ilSetting(
"assessment");
190 $assessmentSetting->set(
"manscoring_done_" . $activeId, (
bool)$manScoringDone);