ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 (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 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.

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

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)
+ Here is the call graph for this function:

Member Function Documentation

◆ addSubItem()

◆ getDisabled()

ilRadioOption::getDisabled ( )

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

References $disabled.

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

◆ getInfo()

ilRadioOption::getInfo ( )

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

References $info.

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

◆ 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 class represents a property that may include a sub form.

◆ getSubItems()

ilRadioOption::getSubItems ( )

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

References $sub_items.

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

◆ getTitle()

ilRadioOption::getTitle ( )

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

References $title.

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

◆ getValue()

ilRadioOption::getValue ( )

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

References $value.

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

◆ setDisabled()

ilRadioOption::setDisabled ( bool  $a_disabled)

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

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

Referenced by ilObjRemoteTestGUI\addCustomEditForm(), ilObjAuthSettingsGUI\getApacheAuthSettingsForm(), ilUserProfile\getRadioInput(), and ilObjExerciseGUI\listAssignmentsObject().

74  : void
75  {
76  $this->disabled = $a_disabled;
77  }
disabled()
description: > Example showing how to plug a disabled checkbox into a form
Definition: disabled.php:32
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setInfo()

ilRadioOption::setInfo ( string  $a_info)

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

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

Referenced by __construct(), ilNewsForContextBlockGUI\addToSettingsForm(), ilDclMobFieldRepresentation\buildFieldCreationInput(), ilCmiXapiSettingsGUI\buildForm(), ilECSMappingSettingsGUI\cInitMappingForm(), ilNewsItemGUI\getEditForm(), ilObjMediaCastSettingsGUI\getForm(), ilObjNewsSettingsGUI\getSettingsForm(), ilMailTemplateGUI\getTemplateForm(), ilObjMediaCastGUI\initAddCastItemForm(), ilObjCmiXapiGUI\initCreateForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilPCConsultationHoursGUI\initForm(), ilPCProfileGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilAuthShibbolethSettingsGUI\initFormRoleAssignment(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilContainerGUI\initListPresentationForm(), ilExAssignmentEditorGUI\initPeerReviewForm(), ilObjSCORMLearningModuleGUI\initPropertiesForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), ilObjSurveyAdministrationGUI\initSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilLTIConsumeProviderFormGUI\initToolConfigForm(), ilPCQuestionGUI\insert(), ilObjExerciseGUI\listAssignmentsObject(), assFormulaQuestionGUI\resetSavedPreviewSession(), ilObjCertificateSettingsGUI\settings(), and ilConditionHandlerGUI\showObligatoryForm().

54  : void
55  {
56  $this->info = $a_info;
57  }
info()
description: > Example for rendering a info message box.
Definition: info.php:34
+ 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.

Referenced by __construct(), and ilObjPortfolioBaseGUI\initPageForm().

44  : void
45  {
46  $this->title = $a_title;
47  }
+ Here is the caller graph for this function:

◆ setValue()

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: