55 $this->options = $a_options;
75 $this->value = $a_value;
111 $this->
setAlert($lng->txt(
"msg_input_is_required"));
125 $tpl =
new ilTemplate(
"tpl.prop_radiomatrix.html",
true,
true,
"Services/Form");
128 foreach($this->
getOptions() as $option_value => $option_html)
130 $tpl->touchBlock(
"row_start");
131 $tpl->touchBlock(
"item");
133 $tpl->setCurrentBlock(
"option_start");
134 $tpl->setVariable(
"VAL_RADIO_OPTION", $option_value);
136 $tpl->setVariable(
"OP_ID", $this->
getPostVar() .
"[" . $option_value .
"]");
137 if ($option_value == $this->
getValue())
139 $tpl->setVariable(
"CHK_RADIO_OPTION",
140 'checked="checked"');
144 $tpl->setVariable(
"DISABLED",
145 " disabled=\"disabled\"");
147 $tpl->setVariable(
"TXT_RADIO_OPTION", $option_html);
148 $tpl->parseCurrentBlock();
149 $tpl->touchBlock(
"item");
151 $tpl->touchBlock(
"row_end");
152 $tpl->touchBlock(
"item");
154 $a_tpl->setCurrentBlock(
"prop_generic");
155 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
156 $a_tpl->parseCurrentBlock();