19 declare(strict_types=1);
    64         $this->values = $a_values;
    91         $tpl = 
new ilTemplate(
"tpl.prop_randomtestroinput.html", 
true, 
true, 
"components/ILIAS/Test");
    93         foreach ($this->values as $value) {
    94             if ($value[
'num_of_q'] > 0) {
    95                 $tpl->setCurrentBlock(
"num_of_q");
    96                 $tpl->setVariable(
"NUM_OF_Q", $value[
'num_of_q']);
    97                 $tpl->setVariable(
"TEXT_FROM", $this->
lng->txt(
'questions_from'));
    98                 $tpl->parseCurrentBlock();
   100             $tpl->setCurrentBlock(
"row");
   101             $class = ($i % 2 == 0) ? 
"even" : 
"odd";
   105             if ($i == count($this->values) - 1) {
   108             $tpl->setVariable(
"ROW_CLASS", $class);
   110             $tpl->setVariable(
"COUNT_VALUE", 
"(" . $value[
'count'] . 
" " . $this->
lng->txt(
'assQuestions') . 
")");
   111             $tpl->parseCurrentBlock();
   114         $tpl->setVariable(
"ELEMENT_ID", $this->
getPostVar());
   116         $a_tpl->setCurrentBlock(
"prop_generic");
   117         $a_tpl->setVariable(
"PROP_GENERIC", $tpl->get());
   118         $a_tpl->parseCurrentBlock();
 
__construct(Container $dic, ilPlugin $plugin)