23 parent::__construct($a_title, $a_postvar);
47 $this->values = $a_values;
79 $tpl =
new ilTemplate(
"tpl.prop_randomtestroinput.html",
true,
true,
"Modules/Test");
81 foreach ($this->values as $value) {
82 if ($value[
'num_of_q'] > 0) {
83 $tpl->setCurrentBlock(
"num_of_q");
84 $tpl->setVariable(
"NUM_OF_Q", $value[
'num_of_q']);
85 $tpl->setVariable(
"TEXT_FROM", $lng->txt(
'questions_from'));
86 $tpl->parseCurrentBlock();
88 $tpl->setCurrentBlock(
"row");
89 $class = (
$i % 2 == 0) ?
"even" :
"odd";
93 if (
$i == count($this->values)-1) {
96 $tpl->setVariable(
"ROW_CLASS", $class);
98 $tpl->setVariable(
"COUNT_VALUE",
"(" . $value[
'count'] .
" " . $lng->txt(
'assQuestions') .
")");
99 $tpl->parseCurrentBlock();
104 $a_tpl->setCurrentBlock(
"prop_generic");
105 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
106 $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
Create styles array
The data for the language used.