23 parent::__construct($a_title, $a_postvar);
47 $this->values = $a_values;
80 $tpl =
new ilTemplate(
"tpl.prop_randomtestroinput.html",
true,
true,
"Modules/Test");
82 foreach ($this->values as $value) {
83 if ($value[
'num_of_q'] > 0) {
84 $tpl->setCurrentBlock(
"num_of_q");
85 $tpl->setVariable(
"NUM_OF_Q", $value[
'num_of_q']);
86 $tpl->setVariable(
"TEXT_FROM",
$lng->txt(
'questions_from'));
87 $tpl->parseCurrentBlock();
89 $tpl->setCurrentBlock(
"row");
90 $class = (
$i % 2 == 0) ?
"even" :
"odd";
94 if (
$i == count($this->values) - 1) {
97 $tpl->setVariable(
"ROW_CLASS", $class);
99 $tpl->setVariable(
"COUNT_VALUE",
"(" . $value[
'count'] .
" " .
$lng->txt(
'assQuestions') .
")");
100 $tpl->parseCurrentBlock();
105 $a_tpl->setCurrentBlock(
"prop_generic");
106 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
107 $a_tpl->parseCurrentBlock();
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
special template class to simplify handling of ITX/PEAR