4 require_once(
'Modules/Test/exceptions/class.ilTestEvaluationException.php');
93 return array(
'answeredQuestions',
'pass',
'nrOfAnsweredQuestions',
'reachedpoints',
94 'maxpoints',
'questioncount',
'workingtime');
104 $this->answeredQuestions = array();
164 $this->pass = $a_pass;
172 function addAnsweredQuestion($question_id, $max_points, $reached_points, $isAnswered, $sequence = NULL, $manual = 0)
174 $this->answeredQuestions[] = array(
175 "id" => $question_id,
176 "points" => round($max_points, 2),
177 "reached" => round($reached_points, 2),
178 'isAnswered' => $isAnswered,
179 "sequence" => $sequence,
186 if (array_key_exists($index, $this->answeredQuestions))
188 return $this->answeredQuestions[$index];
198 foreach ($this->answeredQuestions as $question)
200 if ($question[
"id"] == $question_id)
210 return count($this->answeredQuestions);
275 if( !is_null($this->obligationsAnswered) )
280 if( is_array($this->answeredQuestions) && count($this->answeredQuestions) )
282 foreach($this->answeredQuestions as $question)
284 if( !$question[
'isAnswered'] )
294 'Neither the boolean property ilTestEvaluationPassData::obligationsAnswered was set, '.
295 'nor the property array property ilTestEvaluationPassData::answeredQuestions contains elements!'