24 include_once(
"./Services/Form/classes/class.ilRadioOption.php");
 
   57                 $this->options[] = $a_option;
 
   77                 $this->value = $a_value;
 
  100                         foreach($option->getSubItems() as $item)
 
  102                                 $item->setValueByArray($a_values);
 
  120                         $this->
setAlert($lng->txt(
"msg_input_is_required"));
 
  128                         foreach($option->getSubItems() as $item)
 
  130                                 $item_ok = $item->checkInput();
 
  149                 $a_tpl->setCurrentBlock(
"prop_generic");
 
  150                 $a_tpl->setVariable(
"PROP_GENERIC", $html);
 
  151                 $a_tpl->parseCurrentBlock();
 
  159                 $tpl = 
new ilTemplate(
"tpl.prop_radio.html", 
true, 
true, 
"Services/Form");
 
  164                         if ($option->getInfo() != 
"")
 
  166                                 $tpl->setCurrentBlock(
"radio_option_desc");
 
  167                                 $tpl->setVariable(
"RADIO_OPTION_DESC", $option->getInfo());
 
  168                                 $tpl->parseCurrentBlock();
 
  172                         if (count($option->getSubItems()) > 0)
 
  174                                 if ($option->getValue() != $this->
getValue())
 
  177                                         $tpl->setCurrentBlock(
"prop_radio_opt_hide");
 
  178                                         $tpl->setVariable(
"HOP_ID", $this->
getFieldId().
"_".$option->getValue());
 
  179                                         $tpl->parseCurrentBlock();
 
  181                                 $tpl->setCurrentBlock(
"radio_option_subform");
 
  183                                 $pf->setMode(
"subform");
 
  184                                 $pf->setItems($option->getSubItems());
 
  185                                 $tpl->setVariable(
"SUB_FORM", $pf->getContent());
 
  186                                 $tpl->setVariable(
"SOP_ID", $this->
getFieldId().
"_".$option->getValue());
 
  187                                 if ($pf->getMultipart())
 
  191                                 $tpl->parseCurrentBlock();
 
  192                                 if ($pf->getMultipart())
 
  198                         $tpl->setCurrentBlock(
"prop_radio_option");
 
  203                         $tpl->setVariable(
"VAL_RADIO_OPTION", $option->getValue());
 
  204                         $tpl->setVariable(
"OP_ID", $this->
getFieldId().
"_".$option->getValue());
 
  208                                 $tpl->setVariable(
'DISABLED',
'disabled="disabled" ');
 
  210                         if ($option->getValue() == $this->
getValue())
 
  212                                 $tpl->setVariable(
"CHK_RADIO_OPTION",
 
  213                                         'checked="checked"');
 
  215                         $tpl->setVariable(
"TXT_RADIO_OPTION", $option->getTitle());
 
  218                         $tpl->parseCurrentBlock();
 
  224                         $tpl->setVariable(
"HIDDEN_INPUT",
 
  245                         foreach($option->getSubItems() as $item)
 
  247                                 if ($item->getType() != 
"section_header")
 
  249                                         $ret = $item->getItemByPostVar($a_post_var);