コード例 #1
0
 private function populateGenericQuestionFeedback(ilTemplate $tpl)
 {
     if ($this->questionOBJ->isPreviewSolutionCorrect($this->previewSession)) {
         $feedback = $this->questionGUI->getGenericFeedbackOutputForCorrectSolution();
     } else {
         $feedback = $this->questionGUI->getGenericFeedbackOutputForIncorrectSolution();
     }
     $tpl->setCurrentBlock('instant_feedback_generic');
     $tpl->setVariable('GENERIC_FEEDBACK', $feedback);
     $tpl->parseCurrentBlock();
 }