109 return array(
'answeredQuestions',
'pass',
'nrOfAnsweredQuestions',
'reachedpoints',
110 'maxpoints',
'questioncount',
'workingtime',
'examId');
120 $this->answeredQuestions = array();
180 $this->pass = $a_pass;
188 public function addAnsweredQuestion($question_id, $max_points, $reached_points, $isAnswered, $sequence = null, $manual = 0)
190 $this->answeredQuestions[] = array(
191 "id" => $question_id,
192 "points" => round($max_points, 2),
193 "reached" => round($reached_points, 2),
194 'isAnswered' => $isAnswered,
195 "sequence" => $sequence,
202 if (array_key_exists(
$index, $this->answeredQuestions)) {
203 return $this->answeredQuestions[
$index];
211 foreach ($this->answeredQuestions as $question) {
212 if ($question[
"id"] == $question_id) {
221 return count($this->answeredQuestions);
302 if (!is_null($this->obligationsAnswered)) {
306 if (is_array($this->answeredQuestions) && count($this->answeredQuestions)) {
307 foreach ($this->answeredQuestions as $question) {
308 if (!$question[
'isAnswered']) {
317 'Neither the boolean property ilTestEvaluationPassData::obligationsAnswered was set, ' .
318 'nor the property array property ilTestEvaluationPassData::answeredQuestions contains elements!'
setQuestionCount($questioncount)
setRequestedHintsCount($requestedHintsCount)
Setter for $requestedHintsCount.
setExamId(string $examId)
__construct()
Constructor.
setNrOfAnsweredQuestions($nrOfAnsweredQuestions)
getAnsweredQuestionByQuestionId($question_id)
getRequestedHintsCount()
Getter for $requestedHintsCount.
getAnsweredQuestion($index)
setWorkingTime($workingtime)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getAnsweredQuestionCount()
setReachedPoints(float $reachedpoints)
setDeductedHintPoints($deductedHintPoints)
Setter for $deductedHintPoints.
setObligationsAnswered($obligationsAnswered)
setter for property obligationsAnswered
areObligationsAnswered()
getter for property obligationsAnswered.
getDeductedHintPoints()
Getter for $deductedHintPoints.
getNrOfAnsweredQuestions()
addAnsweredQuestion($question_id, $max_points, $reached_points, $isAnswered, $sequence=null, $manual=0)