| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
This class represents a number property in a property form. More...
 Inheritance diagram for ilNumberInputGUI:
 Inheritance diagram for ilNumberInputGUI: Collaboration diagram for ilNumberInputGUI:
 Collaboration diagram for ilNumberInputGUI:| Public Member Functions | |
| __construct ($a_title="", $a_postvar="") | |
| Constructor. | |
| setSuffix ($a_value) | |
| Set suffix. | |
| getSuffix () | |
| Get suffix. | |
| setValue ($a_value) | |
| Set Value. | |
| getValue () | |
| Get Value. | |
| setMaxLength ($a_maxlength) | |
| Set Max Length. | |
| getMaxLength () | |
| Get Max Length. | |
| setMinvalueShouldBeGreater ($a_bool) | |
| Set minvalueShouldBeGreater. | |
| minvalueShouldBeGreater () | |
| Get minvalueShouldBeGreater. | |
| setMaxvalueShouldBeLess ($a_bool) | |
| Set maxvalueShouldBeLess. | |
| maxvalueShouldBeLess () | |
| Get maxvalueShouldBeLess. | |
| setSize ($a_size) | |
| Set Size. | |
| setValueByArray ($a_values) | |
| Set value by array. | |
| getSize () | |
| Get Size. | |
| setMinValue ($a_minvalue) | |
| Set Minimum Value. | |
| getMinValue () | |
| Get Minimum Value. | |
| setMaxValue ($a_maxvalue) | |
| Set Maximum Value. | |
| getMaxValue () | |
| Get Maximum Value. | |
| setDecimals ($a_decimals) | |
| Set Decimal Places. | |
| getDecimals () | |
| Get Decimal Places. | |
| allowDecimals ($a_value) | |
| Toggle Decimals. | |
| areDecimalsAllowed () | |
| checkInput () | |
| Check input, strip slashes etc. | |
| insert (&$a_tpl) | |
| Insert property html. | |
| render () | |
| Insert property html. | |
| getPostValueForComparison () | |
| parse post value to make it comparable | |
|  Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
| addSubItem ($a_item) | |
| Add Subitem. | |
| getSubItems () | |
| Get Subitems. | |
| getSubInputItemsRecursive () | |
| returns a flat array of possibly existing subitems recursively | |
| checkSubItemsInput () | |
| Check SubItems. | |
| getSubForm () | |
| Get sub form html. | |
| getItemByPostVar ($a_post_var) | |
| Get item by post var. | |
|  Public Member Functions inherited from ilFormPropertyGUI | |
| & | executeCommand () | 
| Execute command. | |
| getType () | |
| Get Type. | |
| setTitle ($a_title) | |
| Set Title. | |
| getTitle () | |
| Get Title. | |
| setPostVar ($a_postvar) | |
| Set Post Variable. | |
| getPostVar () | |
| Get Post Variable. | |
| getFieldId () | |
| Get Post Variable. | |
| setInfo ($a_info) | |
| Set Information Text. | |
| getInfo () | |
| Get Information Text. | |
| setAlert ($a_alert) | |
| Set Alert Text. | |
| getAlert () | |
| Get Alert Text. | |
| setRequired ($a_required) | |
| Set Required. | |
| getRequired () | |
| Get Required. | |
| setDisabled ($a_disabled) | |
| Set Disabled. | |
| getDisabled () | |
| Get Disabled. | |
| setParentForm ($a_parentform) | |
| Set Parent Form. | |
| getParentForm () | |
| Get Parent Form. | |
| setParent ($a_val) | |
| Set Parent GUI object. | |
| getParent () | |
| Get Parent GUI object. | |
| hideSubForm () | |
| Sub form hidden on init? | |
| setHiddenTitle ($a_val) | |
| Set hidden title (for screenreaders) | |
| getHiddenTitle () | |
| Get hidden title. | |
| serializeData () | |
| serialize data | |
| unserializeData ($a_data) | |
| unserialize data | |
| writeToSession () | |
| Write to session. | |
| clearFromSession () | |
| Clear session value. | |
| readFromSession () | |
| Read from session. | |
| getHiddenTag ($a_post_var, $a_value) | |
| Get hidden tag (used for disabled properties) | |
| setMulti ($a_multi, $a_sortable=false, $a_addremove=true) | |
| Set Multi. | |
| getMulti () | |
| Get Multi. | |
| setMultiValues (array $a_values) | |
| Set multi values. | |
| getMultiValues () | |
| Get multi values. | |
| getContentOutsideFormTag () | |
| Get content that has to reside outside of the parent form tag, e.g. | |
| Protected Attributes | |
| $value | |
| $maxlength = 200 | |
| $size = 40 | |
| $suffix | |
| $minvalue = false | |
| $minvalueShouldBeGreater = false | |
| $maxvalue = false | |
| $maxvalueShouldBeLess = false | |
| $decimals | |
| $allow_decimals = false | |
|  Protected Attributes inherited from ilSubEnabledFormPropertyGUI | |
| $sub_items = array() | |
|  Protected Attributes inherited from ilFormPropertyGUI | |
| $type | |
| $title | |
| $postvar | |
| $info | |
| $alert | |
| $required = false | |
| $parentgui | |
| $parentform | |
| $hidden_title = "" | |
| $multi = false | |
| $multi_sortable = false | |
| $multi_addremove = true | |
| $multi_values | |
| Additional Inherited Members | |
|  Protected Member Functions inherited from ilFormPropertyGUI | |
| setType ($a_type) | |
| Set Type. | |
| getMultiIconsHTML () | |
| Get HTML for multiple value icons. | |
This class represents a number property in a property form.
Definition at line 14 of file class.ilNumberInputGUI.php.
| ilNumberInputGUI::__construct | ( | $a_title = "", | |
| $a_postvar = "" | |||
| ) | 
Constructor.
| string | $a_title | Title | 
| string | $a_postvar | Post Variable | 
Reimplemented from ilFormPropertyGUI.
Definition at line 33 of file class.ilNumberInputGUI.php.
| ilNumberInputGUI::allowDecimals | ( | $a_value | ) | 
Toggle Decimals.
| bool | $a_value | 
Definition at line 256 of file class.ilNumberInputGUI.php.
Referenced by ilAssQuestionHintGUI\buildForm(), ilObjUserFolderGUI\initFormGeneralSettings(), ilObjUserFolderGUI\initLoginSettingsForm(), assErrorTextGUI\populateAnswerSpecificFormPart(), assNumericGUI\populateAnswerSpecificFormPart(), assTextQuestionGUI\populateAnswerSpecificFormPart(), assClozeTestGUI\populateNumericGapFormPart(), assOrderingQuestionGUI\populateQuestionSpecificFormPart(), assOrderingHorizontalGUI\populateQuestionSpecificFormPart(), and setDecimals().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::areDecimalsAllowed | ( | ) | 
Definition at line 266 of file class.ilNumberInputGUI.php.
References $allow_decimals.
Referenced by render(), and setValue().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::checkInput | ( | ) | 
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Definition at line 276 of file class.ilNumberInputGUI.php.
References $_POST, $lng, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), getMaxValue(), getMinValue(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), maxvalueShouldBeLess(), minvalueShouldBeGreater(), ilFormPropertyGUI\setAlert(), and ilUtil\stripSlashes().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNumberInputGUI::getDecimals | ( | ) | 
Get Decimal Places.
Definition at line 246 of file class.ilNumberInputGUI.php.
References $decimals.
Referenced by render(), and setValue().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::getMaxLength | ( | ) | 
Get Max Length.
Definition at line 112 of file class.ilNumberInputGUI.php.
References $maxlength.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::getMaxValue | ( | ) | 
Get Maximum Value.
Definition at line 222 of file class.ilNumberInputGUI.php.
References $maxvalue.
Referenced by checkInput(), and render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::getMinValue | ( | ) | 
Get Minimum Value.
Definition at line 202 of file class.ilNumberInputGUI.php.
References $minvalue.
Referenced by checkInput(), and render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::getPostValueForComparison | ( | ) | 
parse post value to make it comparable
used by combination input gui
Definition at line 422 of file class.ilNumberInputGUI.php.
References $_POST, $value, ilFormPropertyGUI\getPostVar(), and ilUtil\stripSlashes().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNumberInputGUI::getSize | ( | ) | 
Get Size.
Definition at line 182 of file class.ilNumberInputGUI.php.
References $size.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::getSuffix | ( | ) | 
Get suffix.
Definition at line 53 of file class.ilNumberInputGUI.php.
References $suffix.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::getValue | ( | ) | 
Get Value.
Definition at line 92 of file class.ilNumberInputGUI.php.
References $value.
Referenced by render().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::insert | ( | & | $a_tpl | ) | 
Insert property html.
Definition at line 350 of file class.ilNumberInputGUI.php.
References render().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNumberInputGUI::maxvalueShouldBeLess | ( | ) | 
Get maxvalueShouldBeLess.
Definition at line 152 of file class.ilNumberInputGUI.php.
References $maxvalueShouldBeLess.
Referenced by checkInput(), render(), and setMaxvalueShouldBeLess().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::minvalueShouldBeGreater | ( | ) | 
Get minvalueShouldBeGreater.
Definition at line 132 of file class.ilNumberInputGUI.php.
References $minvalueShouldBeGreater.
Referenced by checkInput(), render(), and setMinvalueShouldBeGreater().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::render | ( | ) | 
Insert property html.
Definition at line 362 of file class.ilNumberInputGUI.php.
References $lng, $tpl, areDecimalsAllowed(), getDecimals(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getFieldId(), getMaxLength(), getMaxValue(), getMinValue(), ilFormPropertyGUI\getPostVar(), getSize(), getSuffix(), getValue(), maxvalueShouldBeLess(), minvalueShouldBeGreater(), and ilUtil\prepareFormOutput().
Referenced by insert().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::setDecimals | ( | $a_decimals | ) | 
Set Decimal Places.
| int | $a_decimals | Decimal Places | 
Definition at line 232 of file class.ilNumberInputGUI.php.
References allowDecimals().
Referenced by SurveyMetricQuestionGUI\addFieldsToEditForm(), ilObjFileAccessSettingsGUI\initPreviewSettingsForm(), ilObjFileAccessSettingsGUI\initUploadSettingsForm(), and assJavaAppletGUI\populateQuestionSpecificFormPart().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::setMaxLength | ( | $a_maxlength | ) | 
Set Max Length.
| int | $a_maxlength | Max Length | 
Definition at line 102 of file class.ilNumberInputGUI.php.
Referenced by ilBasicSkillTemplateGUI\initForm(), ilPCTabsGUI\initForm(), ilSkillCategoryGUI\initForm(), ilSkillTemplateReferenceGUI\initForm(), ilBasicSkillGUI\initForm(), ilSkillTreeNodeGUI\initForm(), ilObjSystemFolderGUI\initJavaServerForm(), ilPCListGUI\initListForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesEditableForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), and ilObjSCORMLearningModuleGUI\properties().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::setMaxValue | ( | $a_maxvalue | ) | 
Set Maximum Value.
| float | $a_maxvalue | Maximum Value | 
Definition at line 212 of file class.ilNumberInputGUI.php.
Referenced by ilObjMediaCastGUI\initSettingsForm(), and ilObjStyleSheetGUI\initTemplateGenerationForm().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::setMaxvalueShouldBeLess | ( | $a_bool | ) | 
Set maxvalueShouldBeLess.
| boolean | $a_bool | true if the maximum value should be less than maxvalue | 
Definition at line 142 of file class.ilNumberInputGUI.php.
References maxvalueShouldBeLess().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNumberInputGUI::setMinValue | ( | $a_minvalue | ) | 
Set Minimum Value.
| float | $a_minvalue | Minimum Value | 
Definition at line 192 of file class.ilNumberInputGUI.php.
Referenced by ilConsultationHourCron\addCustomSettingsToForm(), ilObjMediaPoolGUI\initEditCustomForm(), ilObjCourseGUI\initEditForm(), ilObjRoleGUI\initFormRoleProperties(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilObjStyleSheetGUI\initTagStyleForm(), ilObjSystemFolderGUI\initWebServicesForm(), and assTextSubsetGUI\populateQuestionSpecificFormPart().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::setMinvalueShouldBeGreater | ( | $a_bool | ) | 
Set minvalueShouldBeGreater.
| boolean | $a_bool | true if the minimum value should be greater than minvalue | 
Definition at line 122 of file class.ilNumberInputGUI.php.
References minvalueShouldBeGreater().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilNumberInputGUI::setSize | ( | $a_size | ) | 
Set Size.
| int | $a_size | Size | 
Definition at line 162 of file class.ilNumberInputGUI.php.
Referenced by ilPaymentCouponGUI\addCoupon(), ilPaymentCronNotification\addCustomSettingsToForm(), SurveyMultipleChoiceQuestionGUI\addFieldsToEditForm(), ilPaymentCouponGUI\generateCodes(), ilAccountCodesGUI\initAddCodesForm(), ilRegistrationSettingsGUI\initAddCodesForm(), ilObjExerciseGUI\initEditCustomForm(), ilRegistrationSettingsGUI\initForm(), ilPCMapGUI\initForm(), ilDataCollectionFieldEditGUI\initForm(), ilConsultationHoursGUI\initFormSequence(), ilLPListOfSettingsGUI\initFormSettings(), ilObjSystemFolderGUI\initJavaServerIniForm(), and assTextQuestionGUI\populateQuestionSpecificFormPart().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::setSuffix | ( | $a_value | ) | 
Set suffix.
| string | $a_value | suffix | 
Definition at line 43 of file class.ilNumberInputGUI.php.
Referenced by assSingleChoiceGUI\populateQuestionSpecificFormPart(), and assMultipleChoiceGUI\populateQuestionSpecificFormPart().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::setValue | ( | $a_value | ) | 
Set Value.
| string | $a_value | Value | 
Definition at line 63 of file class.ilNumberInputGUI.php.
References areDecimalsAllowed(), and getDecimals().
Referenced by assClozeTestGUI\addBasicQuestionFormProperties(), assQuestionGUI\addBasicQuestionFormProperties(), ilECSMappingSettingsGUI\dInitFormTreeSettings(), ilCASSettingsGUI\initFormSettings(), ilObjSystemFolderGUI\initJavaServerIniForm(), ilObjPaymentSettingsGUI\InvoiceNumberObject(), assTextQuestionGUI\populateAnswerSpecificFormPart(), assFileUploadGUI\populateQuestionSpecificFormPart(), assJavaAppletGUI\populateQuestionSpecificFormPart(), assFlashQuestionGUI\populateQuestionSpecificFormPart(), assErrorTextGUI\populateQuestionSpecificFormPart(), assMatchingQuestionGUI\populateQuestionSpecificFormPart(), assOrderingQuestionGUI\populateQuestionSpecificFormPart(), assClozeTestGUI\populateQuestionSpecificFormPart(), assOrderingHorizontalGUI\populateQuestionSpecificFormPart(), and setValueByArray().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| ilNumberInputGUI::setValueByArray | ( | $a_values | ) | 
Set value by array.
| array | $a_values | value array | 
Definition at line 172 of file class.ilNumberInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and setValue().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
Definition at line 25 of file class.ilNumberInputGUI.php.
Referenced by areDecimalsAllowed().
| 
 | protected | 
Definition at line 24 of file class.ilNumberInputGUI.php.
Referenced by getDecimals().
| 
 | protected | 
Definition at line 17 of file class.ilNumberInputGUI.php.
Referenced by getMaxLength().
| 
 | protected | 
Definition at line 22 of file class.ilNumberInputGUI.php.
Referenced by getMaxValue().
| 
 | protected | 
Definition at line 23 of file class.ilNumberInputGUI.php.
Referenced by maxvalueShouldBeLess().
| 
 | protected | 
Definition at line 20 of file class.ilNumberInputGUI.php.
Referenced by getMinValue().
| 
 | protected | 
Definition at line 21 of file class.ilNumberInputGUI.php.
Referenced by minvalueShouldBeGreater().
| 
 | protected | 
Definition at line 18 of file class.ilNumberInputGUI.php.
Referenced by getSize().
| 
 | protected | 
Definition at line 19 of file class.ilNumberInputGUI.php.
Referenced by getSuffix().
| 
 | protected | 
Definition at line 16 of file class.ilNumberInputGUI.php.
Referenced by getPostValueForComparison(), and getValue().