ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 }

◆ 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 {
142 if( $subItem->getType() == 'section_header' )
143 {
144 continue;
145 }
146
147 $subInputItems[] = $subItem;
148
149 if( $subItem instanceof ilSubEnabledFormPropertyGUI )
150 {
151 $subInputItems = array_merge( $subInputItems, $subItem->getSubInputItemsRecursive() );
152 }
153 }
154
155 return $subInputItems;
156 }
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 }

◆ 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 }

Referenced by __construct().

+ 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: