| @@ 5032-5035 (lines=4) @@ | ||
| 5029 | if ($debug) { |
|
| 5030 | error_log("reply " . print_r($reply, 1) . ""); |
|
| 5031 | } |
|
| 5032 | for ($i = 0; $i < sizeof($reply); $i++) { |
|
| 5033 | $ans = $reply[$i]; |
|
| 5034 | Event::saveQuestionAttempt($questionScore, $ans, $quesId, $exeId, $i, $this->id); |
|
| 5035 | } |
|
| 5036 | } else { |
|
| 5037 | Event::saveQuestionAttempt($questionScore, 0, $quesId, $exeId, 0, $this->id); |
|
| 5038 | } |
|
| @@ 5042-5045 (lines=4) @@ | ||
| 5039 | } elseif ($answerType == MULTIPLE_ANSWER_COMBINATION) { |
|
| 5040 | if ($choice != 0) { |
|
| 5041 | $reply = array_keys($choice); |
|
| 5042 | for ($i = 0; $i < sizeof($reply); $i++) { |
|
| 5043 | $ans = $reply[$i]; |
|
| 5044 | Event::saveQuestionAttempt($questionScore, $ans, $quesId, $exeId, $i, $this->id); |
|
| 5045 | } |
|
| 5046 | } else { |
|
| 5047 | Event::saveQuestionAttempt($questionScore, 0, $quesId, $exeId, 0, $this->id); |
|
| 5048 | } |
|