24 include_once(
"./Services/Form/classes/class.ilCheckboxOption.php");
 
   57                 $this->options[] = $a_option;
 
   77                 $this->value = $a_value;
 
  100                         foreach($option->getSubItems() as $item)
 
  102                                 $item->setValueByArray($a_values);
 
  118                         $this->
setAlert($lng->txt(
"msg_input_is_required"));
 
  126                         foreach($option->getSubItems() as $item)
 
  128                                 $item_ok = $item->checkInput();
 
  129                                 if (!$item_ok && in_array($option->getValue(), 
$_POST[$this->
getPostVar()]))
 
  146                 $tpl = 
new ilTemplate(
"tpl.prop_checkbox_group.html", 
true, 
true, 
"Services/Form");
 
  151                         if ($option->getInfo() != 
"")
 
  153                                 $tpl->setCurrentBlock(
"checkbox_option_desc");
 
  154                                 $tpl->setVariable(
"CHECKBOX_OPTION_DESC", $option->getInfo());
 
  155                                 $tpl->parseCurrentBlock();
 
  159                         if (count($option->getSubItems()) > 0)
 
  161                                 $tpl->setCurrentBlock(
"checkbox_option_subform");
 
  163                                 $pf->setMode(
"subform");
 
  164                                 $pf->setItems($option->getSubItems());
 
  165                                 $tpl->setVariable(
"SUB_FORM", $pf->getContent());
 
  166                                 $tpl->setVariable(
"SOP_ID", $this->
getFieldId().
"_".$option->getValue());
 
  167                                 if ($pf->getMultipart())
 
  171                                 $tpl->parseCurrentBlock();
 
  172                                 if ($pf->getMultipart())
 
  178                         $tpl->setCurrentBlock(
"prop_checkbox_option");
 
  180                         $tpl->setVariable(
"VAL_CHECKBOX_OPTION", $option->getValue());
 
  181                         $tpl->setVariable(
"OP_ID", $this->
getFieldId().
"_".$option->getValue());
 
  185                                 $tpl->setVariable(
'DISABLED',
'disabled="disabled" ');
 
  189                                 if (in_array($option->getValue(), $this->
getValue()))
 
  191                                         $tpl->setVariable(
"CHK_CHECKBOX_OPTION",
 
  192                                                 'checked="checked"');
 
  195                         $tpl->setVariable(
"TXT_CHECKBOX_OPTION", $option->getTitle());
 
  198                         $tpl->parseCurrentBlock();
 
  202                 $a_tpl->setCurrentBlock(
"prop_generic");
 
  203                 $a_tpl->setVariable(
"PROP_GENERIC", 
$tpl->get());
 
  204                 $a_tpl->parseCurrentBlock();
 
  222                         foreach($option->getSubItems() as $item)
 
  224                                 if ($item->getType() != 
"section_header")
 
  226                                         $ret = $item->getItemByPostVar($a_post_var);