36         $points = $this->forms_helper->transformPoints($a_value, 
'points');
    37         $points_unchecked = $this->forms_helper->transformPoints($a_value, 
'points_unchecked');
    39         foreach ($this->values as $index => 
$value) {
    40             $this->values[$index]->setPoints($points[$index] ?? 0.0);
    41             $this->values[$index]->setPointsUnchecked($points_unchecked[$index] ?? 0.0);
    49         $result = $this->forms_helper->checkPointsInputEnoughPositive(
$data, $this->
getRequired(), 
'points');
    50         if (!is_array($result)) {
    55         $result = $this->forms_helper->checkPointsInput(
$data, $this->
getRequired(), 
'points_unchecked');
    56         if (!is_array($result)) {
    66         $tpl = 
new ilTemplate(
"tpl.prop_multiplechoicecorrection_input.html", 
true, 
true, 
"components/ILIAS/TestQuestionPool");
    69         foreach ($this->values as 
$value) {
    70             if ($this->qstObject->isSingleline()) {
    71                 if ($value->hasImage()) {
    72                     $imagename = $this->qstObject->getImagePathWeb() . $value->getImage();
    73                     if (($this->
getSingleline()) && ($this->qstObject->getThumbSize())) {
    74                         if (file_exists($this->qstObject->getImagePath() . $this->qstObject->getThumbPrefix() . $value->getImage())) {
    75                             $imagename = $this->qstObject->getImagePathWeb() . $this->qstObject->getThumbPrefix() . $value->getImage();
    79                     $tpl->setCurrentBlock(
'image');
    80                     $tpl->setVariable(
'SRC_IMAGE', $imagename);
    81                     $tpl->setVariable(
'IMAGE_NAME', $value->getImage());
    83                     $tpl->parseCurrentBlock();
    85                     $tpl->setCurrentBlock(
'image');
    86                     $tpl->touchBlock(
'image');
    87                     $tpl->parseCurrentBlock();
    91             $tpl->setCurrentBlock(
"answer");
    92             $tpl->setVariable(
"ANSWER", $value->getAnswertext());
    93             $tpl->parseCurrentBlock();
    95             $tpl->setCurrentBlock(
"row");
    96             $tpl->setVariable(
"POINTS_POST_VAR", $this->
getPostVar());
    97             $tpl->setVariable(
"POINTS_ROW_NUMBER", $i);
    99                 "PROPERTY_VALUE_CHECKED",
   103                 "PROPERTY_VALUE_UNCHECKED",
   106             $tpl->parseCurrentBlock();
   111         if ($this->qstObject->isSingleline()) {
   112             $tpl->setCurrentBlock(
"image_heading");
   113             $tpl->setVariable(
"ANSWER_IMAGE", $this->
lng->txt(
'answer_image'));
   115             $tpl->parseCurrentBlock();
   118         $tpl->setCurrentBlock(
"points_heading");
   119         $tpl->setVariable(
"POINTS_CHECKED_TEXT", $this->
lng->txt(
'points_checked'));
   120         $tpl->setVariable(
"POINTS_UNCHECKED_TEXT", $this->
lng->txt(
'points_unchecked'));
   121         $tpl->parseCurrentBlock();
   123         $tpl->setVariable(
"ELEMENT_ID", $this->
getPostVar());
   124         $tpl->setVariable(
"ANSWER_TEXT", $this->
lng->txt(
'answer_text'));
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
setVariable($variable, $value='')
Sets a variable value. 
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)