ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilRadioOption Class Reference

This class represents an option in a radio group. More...

+ Inheritance diagram for ilRadioOption:
+ Collaboration diagram for ilRadioOption:

Public Member Functions

 __construct ($a_title="", $a_value="", $a_info="")
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setInfo ($a_info)
 Set Info. More...
 
 getInfo ()
 Get Info. More...
 
 setValue ($a_value)
 Set Value. More...
 
 getValue ()
 Get Value. More...
 
 setDisabled ($a_disabled)
 
 getDisabled ()
 
 addSubItem ($a_item)
 Add Subitem. More...
 
 getSubItems ()
 Get Subitems. More...
 
 getSubInputItemsRecursive ()
 

Protected Attributes

 $title
 
 $value
 
 $info
 
 $sub_items = array()
 
 $disabled
 

Detailed Description

This class represents an option in a radio group.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 31 of file class.ilRadioOption.php.

Constructor & Destructor Documentation

◆ __construct()

ilRadioOption::__construct (   $a_title = "",
  $a_value = "",
  $a_info = "" 
)

Definition at line 39 of file class.ilRadioOption.php.

40 {
41 $this->setTitle($a_title);
42 $this->setValue($a_value);
43 $this->setInfo($a_info);
44 }
setTitle($a_title)
Set Title.
setInfo($a_info)
Set Info.
setValue($a_value)
Set Value.

References setInfo(), setTitle(), and setValue().

+ Here is the call graph for this function:

Member Function Documentation

◆ addSubItem()

ilRadioOption::addSubItem (   $a_item)

Add Subitem.

Parameters
object$a_itemItem

Definition at line 121 of file class.ilRadioOption.php.

122 {
123 $this->sub_items[] = $a_item;
124 }

Referenced by ilAssClozeTestFeedback\completeFbPropsForNumericGap(), ilAssClozeTestFeedback\completeFbPropsForSelectGap(), ilAssClozeTestFeedback\completeFbPropsForTextGap(), and ilAssClozeTestFeedback\completeFormPropsForFeedbackModeGapQuestion().

+ Here is the caller graph for this function:

◆ getDisabled()

ilRadioOption::getDisabled ( )

Definition at line 111 of file class.ilRadioOption.php.

112 {
113 return $this->disabled;
114 }

References $disabled.

◆ getInfo()

ilRadioOption::getInfo ( )

Get Info.

Returns
string Info

Definition at line 81 of file class.ilRadioOption.php.

82 {
83 return $this->info;
84 }

References $info.

◆ getSubInputItemsRecursive()

ilRadioOption::getSubInputItemsRecursive ( )

Definition at line 136 of file class.ilRadioOption.php.

137 {
138 $subInputItems = array();
139
140 foreach ($this->sub_items as $subItem) {
141 if ($subItem->getType() == 'section_header') {
142 continue;
143 }
144
145 $subInputItems[] = $subItem;
146
147 if ($subItem instanceof ilSubEnabledFormPropertyGUI) {
148 $subInputItems = array_merge($subInputItems, $subItem->getSubInputItemsRecursive());
149 }
150 }
151
152 return $subInputItems;
153 }
This class represents a property that may include a sub form.

◆ getSubItems()

ilRadioOption::getSubItems ( )

Get Subitems.

Returns
array Array of items

Definition at line 131 of file class.ilRadioOption.php.

132 {
133 return $this->sub_items;
134 }

References $sub_items.

◆ getTitle()

ilRadioOption::getTitle ( )

Get Title.

Returns
string Title

Definition at line 61 of file class.ilRadioOption.php.

62 {
63 return $this->title;
64 }

References $title.

◆ getValue()

ilRadioOption::getValue ( )

Get Value.

Returns
string Value

Definition at line 101 of file class.ilRadioOption.php.

102 {
103 return $this->value;
104 }

References $value.

◆ setDisabled()

ilRadioOption::setDisabled (   $a_disabled)

Definition at line 106 of file class.ilRadioOption.php.

107 {
108 $this->disabled = $a_disabled;
109 }
disabled()
Example showing how to plug a disabled checkbox into a form.
Definition: disabled.php:5

References disabled().

+ Here is the call graph for this function:

◆ setInfo()

ilRadioOption::setInfo (   $a_info)

Set Info.

Parameters
string$a_infoInfo

Definition at line 71 of file class.ilRadioOption.php.

72 {
73 $this->info = $a_info;
74 }
info()
Definition: info.php:2

References info().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setTitle()

ilRadioOption::setTitle (   $a_title)

Set Title.

Parameters
string$a_titleTitle

Definition at line 51 of file class.ilRadioOption.php.

52 {
53 $this->title = $a_title;
54 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setValue()

ilRadioOption::setValue (   $a_value)

Set Value.

Parameters
string$a_valueValue

Definition at line 91 of file class.ilRadioOption.php.

92 {
93 $this->value = $a_value;
94 }

Referenced by __construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $disabled

ilRadioOption::$disabled
protected

Definition at line 37 of file class.ilRadioOption.php.

Referenced by getDisabled().

◆ $info

ilRadioOption::$info
protected

Definition at line 35 of file class.ilRadioOption.php.

Referenced by getInfo().

◆ $sub_items

ilRadioOption::$sub_items = array()
protected

Definition at line 36 of file class.ilRadioOption.php.

Referenced by getSubItems().

◆ $title

ilRadioOption::$title
protected

Definition at line 33 of file class.ilRadioOption.php.

Referenced by getTitle().

◆ $value

ilRadioOption::$value
protected

Definition at line 34 of file class.ilRadioOption.php.

Referenced by getValue().


The documentation for this class was generated from the following file: