3require_once 
"Services/ADT/classes/Bridges/class.ilADTFormBridge.php";
 
   18                $this->auto_sort = (bool)$a_value;
 
   21        public function forceRadio($a_value, array $a_info = 
null)
 
   23                $this->force_radio = (bool)$a_value;
 
   24                if($this->force_radio)
 
   26                        $this->option_infos = $a_info;
 
   34                $def = $this->
getADT()->getCopyOfDefinition();
 
   35                $selection = $this->
getADT()->getSelection();
 
   39                if((
bool)$this->auto_sort)
 
   48                else if($this->
getADT()->isNull())
 
   53                if(!(
bool)$this->force_radio)
 
   63                        foreach(
$options as $value => $caption)
 
   66                                if(is_array($this->option_infos) && array_key_exists($value, $this->option_infos))
 
   68                                        $option->setInfo($this->option_infos[$value]);
 
   70                                $select->addOption($option);
 
   76                $select->setValue($selection);                          
 
   87                $field->setValue($this->
getADT()->getSelection());
 
   92                return ($this->
getADT()->getSelection() == $a_parent_option);           
 
An exception for terminatinating execution or to throw for unit testing.
This class represents an option in a radio group.
if(!is_array($argv)) $options