43 foreach ($this->forms_helper->transformPoints($a_value) as $index =>
$value) {
48 $this->values[$index]->setPoints(
$value);
54 $points = $this->forms_helper->checkPointsInputEnoughPositive($this->
raw($this->
getPostVar()),
true);
68 $tpl =
new ilTemplate(
'tpl.prop_textsubsetcorrection_input.html',
true,
true,
'components/ILIAS/TestQuestionPool');
70 foreach ($this->values as
$value) {
72 $tpl->setCurrentBlock(
'points');
73 $tpl->setVariable(
'POST_VAR', $this->
getPostVar());
74 $tpl->setVariable(
'ROW_NUMBER', $i);
75 $tpl->setVariable(
'POINTS_ID', $this->
getPostVar() .
"[points][$i]");
77 $tpl->parseCurrentBlock();
80 $tpl->setCurrentBlock(
'row');
82 $tpl->parseCurrentBlock();
86 $tpl->setVariable(
'ELEMENT_ID', $this->
getPostVar());
setVariable($variable, $value='')
Sets a variable value.
special template class to simplify handling of ITX/PEAR
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)