26 $this->
object = $a_object;
38 $passOverwiewData = array();
42 $scoredPass = $this->
object->_getResultPass($active_id);
43 $lastPass = $this->
object->_getPass($active_id);
46 $testReachedPoints = 0;
51 $passFinishDate = $this->
object->getPassFinishDate($active_id,
$pass);
53 if( $passFinishDate <= 0 )
60 $resultData =& $this->
object->getTestResult($active_id,
$pass);
62 if (!$resultData[
"pass"][
"total_max_points"])
68 $passPercentage = ($resultData[
"pass"][
"total_reached_points"]/$resultData[
"pass"][
"total_max_points"])*100;
71 $passMaxPoints = $resultData[
"pass"][
"total_max_points"];
72 $passReachedPoints = $resultData[
"pass"][
"total_reached_points"];
74 $passAnsweredQuestions = $this->
object->getAnsweredQuestionCount($active_id,
$pass);
75 $passTotalQuestions = count($resultData) - 2;
77 if(
$pass == $scoredPass )
81 if (!$resultData[
"test"][
"total_max_points"])
87 $testPercentage = ($resultData[
"test"][
"total_reached_points"]/$resultData[
"test"][
"total_max_points"])*100;
90 $testMaxPoints = $resultData[
"test"][
"total_max_points"];
91 $testReachedPoints = $resultData[
"test"][
"total_reached_points"];
93 $passOverwiewData[
'test'] = array(
94 'active_id' => $active_id,
95 'scored_pass' => $scoredPass,
96 'max_points' => $testMaxPoints,
97 'reached_points' => $testReachedPoints,
98 'percentage' => $testPercentage
101 else $isScoredPass =
false;
103 $passOverwiewData[
'passes'][] = array(
104 'active_id' => $active_id,
106 'finishdate' => $passFinishDate,
107 'max_points' => $passMaxPoints,
108 'reached_points' => $passReachedPoints,
109 'percentage' => $passPercentage,
110 'answered_questions' => $passAnsweredQuestions,
111 'total_questions' => $passTotalQuestions,
112 'is_scored_pass' => $isScoredPass
117 return $passOverwiewData;
130 include_once
"./Modules/Test/classes/class.ilObjAssessmentFolder.php";
133 $testResultData = $this->
object->getTestResult($activeId,
$pass);
135 $manScoringQuestionGuiList = array();
137 foreach($testResultData as $questionData)
139 if( !isset($questionData[
'qid']) )
144 if( !isset($questionData[
'type']) )
149 $questionGUI = $this->
object->createQuestionGUI(
"", $questionData[
'qid']);
151 if( !in_array($questionGUI->object->getQuestionTypeID(), $manScoringQuestionTypes) )
156 $manScoringQuestionGuiList[ $questionData[
'qid'] ] = $questionGUI;
159 return $manScoringQuestionGuiList;
173 $assessmentSetting =
new ilSetting(
"assessment");
174 return $assessmentSetting->get(
"manscoring_done_" . $activeId,
false);
188 $assessmentSetting =
new ilSetting(
"assessment");
189 $assessmentSetting->set(
"manscoring_done_" . $activeId, (
bool)$manScoringDone);