25 require_once(
'Modules/Test/exceptions/class.ilTestEvaluationException.php');
115 return array(
'answeredQuestions',
'pass',
'nrOfAnsweredQuestions',
'reachedpoints',
116 'maxpoints',
'questioncount',
'workingtime');
126 $this->answeredQuestions = array();
186 $this->pass = $a_pass;
196 $this->answeredQuestions[] = array(
197 "id" => $question_id,
198 "points" => round($max_points, 2),
199 "reached" => round($reached_points, 2),
200 'isAnswered' => $isAnswered,
201 "sequence" => $sequence
207 if (array_key_exists($index, $this->answeredQuestions))
209 return $this->answeredQuestions[$index];
219 foreach ($this->answeredQuestions as $question)
221 if ($question[
"id"] == $question_id)
231 return count($this->answeredQuestions);
296 if( !is_null($this->obligationsAnswered) )
301 if( is_array($this->answeredQuestions) && count($this->answeredQuestions) )
303 foreach($this->answeredQuestions as $question)
305 if( !$question[
'isAnswered'] )
315 'Neither the boolean property ilTestEvaluationPassData::obligationsAnswered was set, '.
316 'nor the property array property ilTestEvaluationPassData::answeredQuestions contains elements!'