ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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()

ilRadioOption::addSubItem (   $a_item)

Add Subitem.

Parameters
object$a_itemItem

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

Referenced by ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), ilExAssTypePortfolioGUI\addEditFormCustomProperties(), ilExAssTypeWikiTeamGUI\addEditFormCustomProperties(), ilDclSelectionFieldRepresentation\buildFieldCreationInput(), ilObjTestDynamicQuestionSetConfigGUI\buildForm(), ilAssClozeTestFeedback\completeFbPropsForNumericGap(), ilAssClozeTestFeedback\completeFbPropsForSelectGap(), ilAssClozeTestFeedback\completeFbPropsForTextGap(), ilAssClozeTestFeedback\completeFormPropsForFeedbackModeGapQuestion(), ilForumSettingsGUI\getCustomForm(), ilMailMemberSearchGUI\getMailRadioGroup(), ilPageObjectGUI\initActivationForm(), ilAdvancedSearchGUI\initAdvancedMetaDataForm(), ilPCMediaObjectGUI\initAliasForm(), ilExAssignmentEditorGUI\initAssignmentForm(), ilLOTestAssignmentForm\initForm(), ilObjNotificationSettingsGUI\initForm(), ilPCVerificationGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilObjGroupGUI\initForm(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilRepositorySearchGUI\initFormSearch(), ilContainerGUI\initManualSortingOptionForm(), ilForumSettingsGUI\initNotificationSettingsForm(), ilPCTableGUI\initPropertiesForm(), ilOrgUnitGlobalSettingsGUI\initSettingsForm(), ilObjRepositorySettingsGUI\initSettingsForm(), ilContainerGUI\initSortingDirectionForm(), ilObjSAHSLearningModuleGUI\initUploadForm(), assTextQuestionGUI\populateAnswerSpecificFormPart(), ilStartUpGUI\purgePlaceholders(), and ilLinkInputGUI\render().

122  {
123  $this->sub_items[] = $a_item;
124  }
+ Here is the caller graph for this function:

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

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.

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.

References info().

Referenced by __construct(), ilObjTestSettingsGeneralGUI\addGeneralProperties(), ilObjTestSettingsScoringResultsGUI\addResultDetailsSettingsFormSection(), ilObjTestSettingsScoringResultsGUI\addResultSummarySettingsFormSection(), ilNewsForContextBlockGUI\addToSettingsForm(), ilDclMobFieldRepresentation\buildFieldCreationInput(), ilDclBaseFieldRepresentation\buildFieldCreationInput(), ilObjTestDynamicQuestionSetConfigGUI\buildForm(), ilECSMappingSettingsGUI\cInitMappingForm(), ilSetupGUI\displaySessions(), ilObjNewsSettingsGUI\editSettings(), ilForumSettingsGUI\getCustomForm(), ilNewsItemGUI\getEditForm(), ilChatroomFormFactory\getGeneralSettingsForm(), ilUserStartingPointGUI\getRoleStartingPointForm(), ilObjMediaCastGUI\initAddCastItemForm(), ilECSSettingsGUI\initCategoryMappingForm(), ilObjBlogGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjExerciseGUI\initEditCustomForm(), ilObjCourseGUI\initEditForm(), ilPCConsultationHoursGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilPCProfileGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilObjGroupGUI\initForm(), 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(), ilOpenIdConnectSettingsGUI\initSettingsForm(), ilLOEditorGUI\initSettingsForm(), ilObjGlossaryGUI\initSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilContainerGUI\initSortingForm(), assFormulaQuestionGUI\isSaveCommand(), ilRadiusSettingsGUI\settings(), ilObjCertificateSettingsGUI\settings(), ilObjAssessmentFolderGUI\settingsObject(), and ilConditionHandlerGUI\showObligatoryForm().

72  {
73  $this->info = $a_info;
74  }
info()
Definition: info.php:2
+ 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.

Referenced by __construct(), ilObjSessionGUI\initForm(), and ilMDEditorGUI\listQuickEditCopyright().

52  {
53  $this->title = $a_title;
54  }
+ 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.

Referenced by __construct(), ilObjTestSettingsGeneralGUI\addGeneralProperties(), ilWorkflowArmerGUI\addStartEventInputItems(), ilObjTestSettingsGeneralGUI\addTestFinishProperties(), ilMembershipNotifications\addToSettingsForm(), ilObjTestDynamicQuestionSetConfigGUI\buildForm(), ilECSMappingSettingsGUI\cInitMappingForm(), ilSetupGUI\displaySessions(), ilPCLoginPageElementGUI\edit(), ilObjPersonalDesktopSettingsGUI\editSettings(), ilUserStartingPointGUI\getRoleStartingPointForm(), ilObjMDSettingsGUI\initCopyrightEditForm(), ilObjCourseGUI\initEditForm(), ilContainerReferenceGUI\initForm(), ilObjGroupGUI\initForm(), ilLPListOfSettingsGUI\initFormSettings(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilContainerGUI\initListPresentationForm(), ilGlossaryPresentationGUI\initPrintViewSelectionForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), ilOrgUnitGlobalSettingsGUI\initSettingsForm(), ilObjGlossaryGUI\initSettingsForm(), ilSearchBaseGUI\initStandardSearchForm(), ilObjSAHSLearningModuleGUI\initUploadForm(), ilMDEditorGUI\listQuickEditCopyright(), ilObjSCORMLearningModuleGUI\newModuleVersion(), assTextQuestionGUI\populateAnswerSpecificFormPart(), ilAssQuestionSkillAssignmentPropertyFormGUI\populateFullProperties(), assMatchingQuestionGUI\populateQuestionSpecificFormPart(), ilObjSCORMLearningModuleGUI\properties(), ilStartUpGUI\purgePlaceholders(), and ilObjRoleGUI\showChangeExistingObjectsConfirmation().

92  {
93  $this->value = $a_value;
94  }
+ 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: