19 declare(strict_types=1);
    33         string $a_postvar = 
""    37         $this->
lng = $DIC->language();
    44         $this->options[] = $a_option;
    52     public function setValue(
string $a_value): void
    54         $this->value = $a_value;
    66             foreach ($option->getSubItems() as $item) {
    67                 $item->setValueByArray($a_values);
    85             foreach ($option->getSubItems() as $item) {
    86                 if ($value == $option->getValue()) {
    87                     if (!$item->checkInput()) {
   112         $tpl = 
new ilTemplate(
"tpl.prop_radio.html", 
true, 
true, 
"Services/Form");
   116             if ($option->getInfo() != 
"") {
   117                 $tpl->setCurrentBlock(
"radio_option_desc");
   118                 $tpl->setVariable(
"RADIO_OPTION_DESC", $option->getInfo());
   119                 if ($option->getInfo() !== 
'') {
   120                     $tpl->setVariable(
'DESCRIPTION_FOR_ID', $this->
getFieldId() . 
"_" . $option->getValue());
   122                 $tpl->parseCurrentBlock();
   126             if (count($option->getSubItems()) > 0) {
   127                 if ($option->getValue() != $this->
getValue()) {
   129                     if ($this->global_tpl) {
   130                         $hop_id = $this->
getFieldId() . 
"_" . $option->getValue();
   131                         $this->global_tpl->addOnloadCode(
   132                             "il.Form.hideSubForm('subform_$hop_id');"   137                             "il.Form.hideSubForm('subform_$hop_id');"   141                 $tpl->setCurrentBlock(
"radio_option_subform");
   143                 $pf->setMode(
"subform");
   144                 $pf->setItems($option->getSubItems());
   145                 $tpl->setVariable(
"SUB_FORM", $pf->getContent());
   146                 $tpl->setVariable(
"SOP_ID", $this->
getFieldId() . 
"_" . $option->getValue());
   147                 if ($pf->getMultipart()) {
   150                 $tpl->parseCurrentBlock();
   151                 if ($pf->getMultipart()) {
   156             $tpl->setCurrentBlock(
"prop_radio_option");
   157             $tpl->setVariable(
"POST_VAR", $this->
getPostVar());
   158             $tpl->setVariable(
"VAL_RADIO_OPTION", $option->getValue());
   159             $tpl->setVariable(
"OP_ID", $this->
getFieldId() . 
"_" . $option->getValue());
   160             if ($option->getInfo() !== 
'') {
   161                 $tpl->setVariable(
'DESCRIBED_BY_FIELD_ID', $this->
getFieldId() . 
"_" . $option->getValue());
   163             $tpl->setVariable(
"FID", $this->
getFieldId());
   164             if ($this->
getDisabled() or $option->getDisabled()) {
   165                 $tpl->setVariable(
'DISABLED', 
'disabled="disabled" ');
   167             if ($option->getValue() == $this->
getValue()) {
   173             $tpl->setVariable(
"TXT_RADIO_OPTION", $option->getTitle());
   176             $tpl->parseCurrentBlock();
   197             foreach ($option->getSubItems() as $item) {
   198                 if ($item->getType() != 
"section_header") {
   199                     $ret = $item->getItemByPostVar($a_post_var);
   200                     if (is_object($ret)) {
   217         $subInputItems = parent::getSubInputItemsRecursive();
   222             $subInputItems = array_merge($subInputItems, $option->getSubInputItemsRecursive());
   225         return $subInputItems;
 
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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...
 
setVariable($variable, $value='')
Sets a variable value. 
 
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)