ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

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

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

Member Function Documentation

◆ addSubItem()

◆ getDisabled()

ilRadioOption::getDisabled ( )

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

References $disabled.

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

◆ getInfo()

ilRadioOption::getInfo ( )

Get Info.

Returns
string Info

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

References $info.

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

◆ getSubInputItemsRecursive()

ilRadioOption::getSubInputItemsRecursive ( )

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

References array.

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  }
Create styles array
The data for the language used.
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.

References $sub_items.

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

◆ getTitle()

ilRadioOption::getTitle ( )

Get Title.

Returns
string Title

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

References $title.

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

◆ getValue()

ilRadioOption::getValue ( )

Get Value.

Returns
string Value

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

References $value.

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

◆ setDisabled()

ilRadioOption::setDisabled (   $a_disabled)

◆ setInfo()

ilRadioOption::setInfo (   $a_info)

Set Info.

Parameters
string$a_infoInfo

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

Referenced by __construct(), ilObjTestSettingsGeneralGUI\addGeneralProperties(), ilObjTestSettingsGeneralGUI\addQuestionBehaviourProperties(), ilObjTestSettingsScoringResultsGUI\addResultDetailsSettingsFormSection(), ilObjTestSettingsScoringResultsGUI\addResultSummarySettingsFormSection(), ilDclMobFieldRepresentation\buildFieldCreationInput(), ilDclBaseFieldRepresentation\buildFieldCreationInput(), ilObjTestDynamicQuestionSetConfigGUI\buildForm(), ilECSMappingSettingsGUI\cInitMappingForm(), ilSetupGUI\displaySessions(), ilObjNewsSettingsGUI\editSettings(), ilNewsItemGUI\getEditForm(), ilChatroomFormFactory\getGeneralSettingsForm(), ilUserStartingPointGUI\getRoleStartingPointForm(), ilMailTemplateGUI\getTemplateForm(), ilObjMediaCastGUI\initAddCastItemForm(), ilECSSettingsGUI\initCategoryMappingForm(), ilObjBlogGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjExerciseGUI\initEditCustomForm(), ilObjCourseGUI\initEditForm(), ilPCConsultationHoursGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilPCProfileGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilObjGroupGUI\initForm(), ilObjectActivationGUI\initFormEdit(), ilObjUserFolderGUI\initFormGeneralSettings(), ilAuthShibbolethSettingsGUI\initFormRoleAssignment(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilCASSettingsGUI\initFormSettings(), ilObjMediaCastSettingsGUI\initFormSettings(), ilObjSystemCheckGUI\initFormTrash(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilExAssignmentEditorGUI\initPeerReviewForm(), ilObjFileGUI\initPropertiesForm(), ilObjSurveyGUI\initPropertiesForm(), ilObjPollGUI\initQuestionForm(), ilOrgUnitGlobalSettingsGUI\initSettingsForm(), ilObjRepositorySettingsGUI\initSettingsForm(), ilObjSurveyAdministrationGUI\initSettingsForm(), ilLOEditorGUI\initSettingsForm(), ilObjGlossaryGUI\initSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilContainerGUI\initSortingForm(), assFormulaQuestionGUI\isSaveCommand(), ilRadiusSettingsGUI\settings(), ilObjAssessmentFolderGUI\settingsObject(), and ilConditionHandlerGUI\showObligatoryForm().

72  {
73  $this->info = $a_info;
74  }
+ 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.

Referenced by __construct().

52  {
53  $this->title = $a_title;
54  }
+ Here is the caller graph for this function:

◆ setValue()

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: