ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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  {
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  }
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)

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

Referenced by ilObjRemoteCourseGUI\addCustomEditForm(), ilObjRemoteGroupGUI\addCustomEditForm(), ilObjRemoteTestGUI\addCustomEditForm(), ilUserProfile\addStandardFieldsToForm(), and ilObjAuthSettingsGUI\getApacheAuthSettingsForm().

107  {
108  $this->disabled = $a_disabled;
109  }
+ Here is the caller graph for this function:

◆ 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(), ilChatroomFormFactory\applyValues(), ilDclMobFieldRepresentation\buildFieldCreationInput(), ilDclBaseFieldRepresentation\buildFieldCreationInput(), ilObjTestDynamicQuestionSetConfigGUI\buildForm(), ilECSMappingSettingsGUI\cInitMappingForm(), ilSetupGUI\displaySessions(), ilObjNewsSettingsGUI\editSettings(), ilNewsItemGUI\getEditForm(), ilMailTemplateGUI\getTemplateForm(), ilObjMediaCastGUI\initAddCastItemForm(), ilECSSettingsGUI\initCategoryMappingForm(), ilObjBlogGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilObjExerciseGUI\initEditCustomForm(), ilObjCourseGUI\initEditForm(), ilPCConsultationHoursGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilPCProfileGUI\initForm(), ilObjMediaObjectGUI\initForm(), ilObjGroupGUI\initForm(), ilCalendarCategoryGUI\initFormCategory(), ilObjectActivationGUI\initFormEdit(), ilObjUserFolderGUI\initFormGeneralSettings(), ilAuthShibbolethSettingsGUI\initFormRoleAssignment(), ilLDAPSettingsGUI\initFormRoleAssignments(), ilCASSettingsGUI\initFormSettings(), ilObjMediaCastSettingsGUI\initFormSettings(), ilObjSystemCheckGUI\initFormTrash(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilExAssignmentEditorGUI\initPeerReviewForm(), ilObjFileGUI\initPropertiesForm(), ilObjSurveyGUI\initPropertiesForm(), ilObjPollGUI\initQuestionForm(), ilObjRepositorySettingsGUI\initSettingsForm(), ilObjSurveyAdministrationGUI\initSettingsForm(), ilLOEditorGUI\initSettingsForm(), ilObjGlossaryGUI\initSettingsForm(), ilNewsForContextBlockGUI\initSettingsForm(), ilContainerGUI\initSortingForm(), assFormulaQuestionGUI\isSaveCommand(), ilRadiusSettingsGUI\settings(), ilObjAssessmentFolderGUI\settingsObject(), ilObjSystemFolderGUI\showBasicSettingsObject(), 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(), ilObjGroupGUI\initForm(), and ilObjPortfolioBaseGUI\initPageForm().

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(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilWorkflowArmerGUI\addStartEventInputItems(), ilObjTestSettingsGeneralGUI\addTestFinishProperties(), ilMembershipNotifications\addToSettingsForm(), ilObjTestDynamicQuestionSetConfigGUI\buildForm(), ilECSMappingSettingsGUI\cInitMappingForm(), ilSurveyEditorGUI\createQuestionObject(), ilObjTestGUI\createQuestionObject(), ilSetupGUI\displaySessions(), ilPCLoginPageElementGUI\edit(), ilObjPersonalDesktopSettingsGUI\editSettings(), ilObjCourseGUI\initEditForm(), ilContainerReferenceGUI\initForm(), ilObjGroupGUI\initForm(), ilLPListOfSettingsGUI\initFormSettings(), ilPersonalSettingsGUI\initGeneralSettingsForm(), ilGlossaryPresentationGUI\initPrintViewSelectionForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), ilObjGlossaryGUI\initSettingsForm(), ilSearchBaseGUI\initStandardSearchForm(), assTextQuestionGUI\populateAnswerSpecificFormPart(), ilAssQuestionSkillAssignmentPropertyFormGUI\populateFullProperties(), assMatchingQuestionGUI\populateQuestionSpecificFormPart(), ilObjSCORMLearningModuleGUI\properties(), ilStartUpGUI\purgePlaceholders(), ilObjSystemFolderGUI\showBasicSettingsObject(), 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: