24include_once(
"./Services/Form/classes/class.ilRadioOption.php");
 
   48        $this->lng = 
$DIC->language();
 
   49        parent::__construct($a_title, $a_postvar);
 
   60        $this->options[] = $a_option;
 
   80        $this->value = $a_value;
 
  102            foreach ($option->getSubItems() as $item) {
 
  103                $item->setValueByArray($a_values);
 
  127            foreach ($option->getSubItems() as $item) {
 
  129                    if (!$item->checkInput()) {
 
  147        $a_tpl->setCurrentBlock(
"prop_generic");
 
  148        $a_tpl->setVariable(
"PROP_GENERIC", 
$html);
 
  149        $a_tpl->parseCurrentBlock();
 
  157        $tpl = 
new ilTemplate(
"tpl.prop_radio.html", 
true, 
true, 
"Services/Form");
 
  161            if ($option->getInfo() != 
"") {
 
  162                $tpl->setCurrentBlock(
"radio_option_desc");
 
  163                $tpl->setVariable(
"RADIO_OPTION_DESC", $option->getInfo());
 
  164                $tpl->parseCurrentBlock();
 
  168            if (count($option->getSubItems()) > 0) {
 
  169                if ($option->getValue() != $this->getValue()) {
 
  171                    $tpl->setCurrentBlock(
"prop_radio_opt_hide");
 
  172                    $tpl->setVariable(
"HOP_ID", $this->
getFieldId() . 
"_" . $option->getValue());
 
  173                    $tpl->parseCurrentBlock();
 
  175                $tpl->setCurrentBlock(
"radio_option_subform");
 
  177                $pf->setMode(
"subform");
 
  178                $pf->setItems($option->getSubItems());
 
  179                $tpl->setVariable(
"SUB_FORM", $pf->getContent());
 
  180                $tpl->setVariable(
"SOP_ID", $this->
getFieldId() . 
"_" . $option->getValue());
 
  181                if ($pf->getMultipart()) {
 
  184                $tpl->parseCurrentBlock();
 
  185                if ($pf->getMultipart()) {
 
  190            $tpl->setCurrentBlock(
"prop_radio_option");
 
  194            $tpl->setVariable(
"VAL_RADIO_OPTION", $option->getValue());
 
  195            $tpl->setVariable(
"OP_ID", $this->
getFieldId() . 
"_" . $option->getValue());
 
  197            if ($this->
getDisabled() or $option->getDisabled()) {
 
  198                $tpl->setVariable(
'DISABLED', 
'disabled="disabled" ');
 
  200            if ($option->getValue() == $this->getValue()) {
 
  206            $tpl->setVariable(
"TXT_RADIO_OPTION", $option->getTitle());
 
  209            $tpl->parseCurrentBlock();
 
  235            foreach ($option->getSubItems() as $item) {
 
  236                if ($item->getType() != 
"section_header") {
 
  237                    $ret = $item->getItemByPostVar($a_post_var);
 
  238                    if (is_object(
$ret)) {
 
  260        $subInputItems = parent::getSubInputItemsRecursive();
 
  265            $subInputItems = array_merge($subInputItems, $option->getSubInputItemsRecursive());
 
  268        return $subInputItems;
 
An exception for terminatinating execution or to throw for unit testing.
special template class to simplify handling of ITX/PEAR
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
Interface for property form input GUI classes that can be used in table filters.