ILIAS  release_8 Revision v8.24
ilRadioOption Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 __construct (string $a_title="", string $a_value="", string $a_info="")
 
 setTitle (string $a_title)
 
 getTitle ()
 
 setInfo (string $a_info)
 
 getInfo ()
 
 setValue (string $a_value)
 
 getValue ()
 
 setDisabled (bool $a_disabled)
 
 getDisabled ()
 
 addSubItem ($a_item)
 
 getSubItems ()
 
 getSubInputItemsRecursive ()
 

Protected Attributes

string $title = ""
 
string $value = ""
 
string $info = ""
 
array $sub_items = array()
 
bool $disabled = false
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning This class represents an option in a radio group

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Constructor & Destructor Documentation

◆ __construct()

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

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

38 {
39 $this->setTitle($a_title);
40 $this->setValue($a_value);
41 $this->setInfo($a_info);
42 }
setInfo(string $a_info)
setValue(string $a_value)
setTitle(string $a_title)

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

+ Here is the call graph for this function:

Member Function Documentation

◆ addSubItem()

ilRadioOption::addSubItem (   $a_item)

◆ getDisabled()

ilRadioOption::getDisabled ( )

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

79 : bool
80 {
81 return $this->disabled;
82 }

References $disabled.

◆ getInfo()

ilRadioOption::getInfo ( )

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

59 : string
60 {
61 return $this->info;
62 }

References $info.

◆ getSubInputItemsRecursive()

ilRadioOption::getSubInputItemsRecursive ( )

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

97 : array
98 {
99 $subInputItems = array();
100
101 foreach ($this->sub_items as $subItem) {
102 if ($subItem->getType() == 'section_header') {
103 continue;
104 }
105
106 $subInputItems[] = $subItem;
107
108 if ($subItem instanceof ilSubEnabledFormPropertyGUI) {
109 $subInputItems = array_merge($subInputItems, $subItem->getSubInputItemsRecursive());
110 }
111 }
112
113 return $subInputItems;
114 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ getSubItems()

ilRadioOption::getSubItems ( )

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

92 : array
93 {
94 return $this->sub_items;
95 }

References $sub_items.

◆ getTitle()

ilRadioOption::getTitle ( )

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

49 : string
50 {
51 return $this->title;
52 }

References $title.

◆ getValue()

ilRadioOption::getValue ( )

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

69 : string
70 {
71 return $this->value;
72 }

References $value.

◆ setDisabled()

ilRadioOption::setDisabled ( bool  $a_disabled)

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

74 : void
75 {
76 $this->disabled = $a_disabled;
77 }
disabled()
Example showing how to plug a disabled checkbox into a form.
Definition: disabled.php:10

References ILIAS\UI\examples\Input\Field\Checkbox\disabled().

+ Here is the call graph for this function:

◆ setInfo()

ilRadioOption::setInfo ( string  $a_info)

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

54 : void
55 {
56 $this->info = $a_info;
57 }

References ILIAS\UI\examples\MessageBox\Info\info().

Referenced by __construct().

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

◆ setTitle()

ilRadioOption::setTitle ( string  $a_title)

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

44 : void
45 {
46 $this->title = $a_title;
47 }

Referenced by __construct().

+ Here is the caller graph for this function:

◆ setValue()

ilRadioOption::setValue ( string  $a_value)

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

64 : void
65 {
66 $this->value = $a_value;
67 }

Referenced by __construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $disabled

bool ilRadioOption::$disabled = false
protected

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

Referenced by getDisabled().

◆ $info

string ilRadioOption::$info = ""
protected

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

Referenced by getInfo().

◆ $sub_items

array ilRadioOption::$sub_items = array()
protected

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

Referenced by getSubItems().

◆ $title

string ilRadioOption::$title = ""
protected

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

Referenced by getTitle().

◆ $value

string ilRadioOption::$value = ""
protected

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

Referenced by getValue().


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