62 $this->values = $a_values;
92 $tpl =
new ilTemplate(
"tpl.prop_randomtestroinput.html",
true,
true,
"Modules/Test");
94 foreach ($this->values as $value) {
95 if ($value[
'num_of_q'] > 0) {
96 $tpl->setCurrentBlock(
"num_of_q");
97 $tpl->setVariable(
"NUM_OF_Q", $value[
'num_of_q']);
98 $tpl->setVariable(
"TEXT_FROM",
$lng->
txt(
'questions_from'));
99 $tpl->parseCurrentBlock();
101 $tpl->setCurrentBlock(
"row");
102 $class = (
$i % 2 == 0) ?
"even" :
"odd";
106 if (
$i == count($this->values) - 1) {
109 $tpl->setVariable(
"ROW_CLASS", $class);
111 $tpl->setVariable(
"COUNT_VALUE",
"(" . $value[
'count'] .
" " .
$lng->
txt(
'assQuestions') .
")");
112 $tpl->parseCurrentBlock();
117 $a_tpl->setCurrentBlock(
"prop_generic");
118 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
119 $a_tpl->parseCurrentBlock();
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...
__construct(Container $dic, ilPlugin $plugin)
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl