31         foreach ($this->values as $index => 
$value) {
    32             $this->values[$index][
'points'] = $a_value[
'points'][$index];
    39         $lng = $DIC->language();
    44         if (is_array(
$values[
'points'])) {
    45             foreach (
$values[
'points'] as $points) {
    49                 if (((strlen($points)) == 0) || (!is_numeric($points))) {
    54                     if (trim($points) != 
"" &&
    62                     if (trim($points) != 
"" &&
    82         $tpl = 
new ilTemplate(
'tpl.prop_gap_combi_answers_input.html', 
true, 
true, 
'Modules/TestQuestionPool');
    86         foreach ($this->values as $varId => $variant) {
    87             foreach ($variant[
'gaps'] as $gapIndex => $answer) {
    88                 $gaps[$gapIndex] = $gapIndex;
    90                 $tpl->setCurrentBlock(
'gap_answer');
    91                 $tpl->setVariable(
'GAP_ANSWER', $answer);
    92                 $tpl->parseCurrentBlock();
    95             $tpl->setCurrentBlock(
'variant');
    96             $tpl->setVariable(
'POSTVAR', $this->
getPostVar());
    97             $tpl->setVariable(
'POINTS', $variant[
'points']);
    98             $tpl->parseCurrentBlock();
   101         foreach ($gaps as $gapIndex) {
   102             $tpl->setCurrentBlock(
'gap_header');
   103             $tpl->setVariable(
'GAP_HEADER', 
'Gap ' . ($gapIndex + 1));
   104             $tpl->parseCurrentBlock();
   107         $tpl->setVariable(
'POINTS_HEADER', 
'Points');
 parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
setVariable($variable, $value='')
Sets a variable value. 
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)