ILIAS
release_8 Revision v8.19
|
This class represents a number property in a property form. More...
Public Member Functions | |
__construct (string $a_title="", string $a_postvar="") | |
setSuffix (string $a_value) | |
getSuffix () | |
setValue (?string $a_value) | |
getValue () | |
unserializeData (string $a_data) | |
setMaxLength (int $a_maxlength) | |
getMaxLength () | |
setMinvalueShouldBeGreater (bool $a_bool) | |
minvalueShouldBeGreater () | |
setMaxvalueShouldBeLess (bool $a_bool) | |
maxvalueShouldBeLess () | |
setSize (int $a_size) | |
setValueByArray (array $a_values) | |
getSize () | |
setMinValue (float $a_minvalue, bool $a_display_always=false) | |
getMinValue () | |
setMaxValue (float $a_maxvalue, bool $a_display_always=false) | |
getMaxValue () | |
setDecimals (int $a_decimals) | |
getDecimals () | |
allowDecimals (bool $a_value) | |
areDecimalsAllowed () | |
checkInput () | |
getInput () | |
insert (ilTemplate $a_tpl) | |
render () | |
getPostValueForComparison () | |
setClientSideValidation (bool $validate) | |
![]() | |
addSubItem (ilFormPropertyGUI $a_item) | |
getSubItems () | |
getSubInputItemsRecursive () | |
returns a flat array of possibly existing subitems recursively More... | |
checkSubItemsInput () | |
Check SubItems. More... | |
getSubForm () | |
getItemByPostVar (string $a_post_var) | |
![]() | |
__construct (string $a_title="", string $a_postvar="") | |
executeCommand () | |
getType () | |
setTitle (string $a_title) | |
getTitle () | |
setPostVar (string $a_postvar) | |
getPostVar () | |
getFieldId () | |
setInfo (string $a_info) | |
getInfo () | |
setAlert (string $a_alert) | |
getAlert () | |
setRequired (bool $a_required) | |
getRequired () | |
setDisabled (bool $a_disabled) | |
getDisabled () | |
checkInput () | |
Check input, strip slashes etc. More... | |
setParentForm (ilPropertyFormGUI $a_parentform) | |
getParentForm () | |
setParent (ilFormPropertyGUI $a_val) | |
getParent () | |
getSubForm () | |
hideSubForm () | |
setHiddenTitle (string $a_val) | |
getHiddenTitle () | |
getItemByPostVar (string $a_post_var) | |
Get item by post var. More... | |
serializeData () | |
unserializeData (string $a_data) | |
setParentTable ($a_val) | |
Set parent table. More... | |
getParentTable () | |
Get parent table. More... | |
writeToSession () | |
clearFromSession () | |
readFromSession () | |
getHiddenTag (string $a_post_var, string $a_value) | |
setMulti (bool $a_multi, bool $a_sortable=false, bool $a_addremove=true) | |
getMulti () | |
setMultiValues (array $a_values) | |
getMultiValues () | |
getContentOutsideFormTag () | |
Get content that has to reside outside of the parent form tag, e.g. More... | |
stripSlashesAddSpaceFallback (string $a_str) | |
Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More... | |
getTableFilterLabelFor () | |
Get label "for" attribute value for filter. More... | |
getFormLabelFor () | |
Get label "for" attribute value for form. More... | |
setRequestParam (string $key, $val) | |
This writes the request (aka post) values. More... | |
Additional Inherited Members | |
![]() | |
static | removeProhibitedCharacters (string $a_text) |
Remove prohibited characters see #19159. More... | |
![]() | |
setType (string $a_type) | |
checkParentFormTable () | |
getSessionKey () | |
getMultiIconsHTML () | |
int ($key) | |
intArray ($key) | |
str ($key) | |
raw ($key) | |
strArray ($key) | |
arrayArray ($key) | |
isRequestParamArray (string $key) | |
getRequestParam (string $key, Refinery\Transformation $t) | |
This class represents a number property in a property form.
Definition at line 26 of file class.ilNumberInputGUI.php.
ilNumberInputGUI::__construct | ( | string | $a_title = "" , |
string | $a_postvar = "" |
||
) |
Definition at line 42 of file class.ilNumberInputGUI.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\lng().
ilNumberInputGUI::allowDecimals | ( | bool | $a_value | ) |
Definition at line 187 of file class.ilNumberInputGUI.php.
Referenced by ilSCCronTrash\addCustomSettingsToForm(), ilLoggerCronCleanErrorFiles\addCustomSettingsToForm(), ilCronDeleteInactivatedUserAccounts\addCustomSettingsToForm(), ilCronDeleteNeverLoggedInUserAccounts\addCustomSettingsToForm(), ilCronDeleteInactiveUserAccounts\addCustomSettingsToForm(), ilExAssTypeTextGUI\addEditFormCustomProperties(), ilObjTestSettingsGeneralGUI\addTestRunProperties(), ilTestScoringByQuestionsGUI\appendFormToModal(), ilForumLP\appendModeConfiguration(), ilAssQuestionHintGUI\buildForm(), ilChatroomFormFactory\getClientSettingsForm(), ilObjForumAdministrationGUI\getSettingsForm(), ilCronManagerGUI\initEditForm(), ilObjUserFolderGUI\initFormGeneralSettings(), ilObjUserFolderGUI\initLoginSettingsForm(), assFormulaQuestionGUI\isSaveCommand(), assErrorTextGUI\populateAnswerSpecificFormPart(), assNumericGUI\populateAnswerSpecificFormPart(), assTextQuestionGUI\populateAnswerSpecificFormPart(), assNumericGUI\populateCorrectionsFormProperties(), assOrderingHorizontalGUI\populateCorrectionsFormProperties(), assFileUploadGUI\populateCorrectionsFormProperties(), assErrorTextGUI\populateCorrectionsFormProperties(), assOrderingQuestionGUI\populateCorrectionsFormProperties(), assClozeTestGUI\populateGapSizeFormPart(), assClozeTestGUI\populateNumericGapCorrectionFormProperty(), assClozeTestGUI\populateNumericGapFormPart(), assFileUploadGUI\populateQuestionSpecificFormPart(), assOrderingQuestionGUI\populateQuestionSpecificFormPart(), assOrderingHorizontalGUI\populateQuestionSpecificFormPart(), ilObjTestGUI\randomselectObject(), and setDecimals().
ilNumberInputGUI::areDecimalsAllowed | ( | ) |
Definition at line 192 of file class.ilNumberInputGUI.php.
References $allow_decimals.
Referenced by render(), and setValue().
ilNumberInputGUI::checkInput | ( | ) |
Definition at line 197 of file class.ilNumberInputGUI.php.
References ilFormPropertyGUI\$lng, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), getMaxValue(), getMinValue(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), maxvalueShouldBeLess(), minvalueShouldBeGreater(), ilFormPropertyGUI\setAlert(), ilFormPropertyGUI\str(), and ilLanguage\txt().
ilNumberInputGUI::getDecimals | ( | ) |
Definition at line 182 of file class.ilNumberInputGUI.php.
References $decimals.
Referenced by render(), and setValue().
ilNumberInputGUI::getInput | ( | ) |
Definition at line 253 of file class.ilNumberInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and ilFormPropertyGUI\str().
Referenced by getPostValueForComparison().
ilNumberInputGUI::getMaxLength | ( | ) |
Definition at line 106 of file class.ilNumberInputGUI.php.
References $maxlength.
Referenced by render().
ilNumberInputGUI::getMaxValue | ( | ) |
Definition at line 169 of file class.ilNumberInputGUI.php.
References $maxvalue.
Referenced by checkInput(), and render().
ilNumberInputGUI::getMinValue | ( | ) |
Definition at line 156 of file class.ilNumberInputGUI.php.
References $minvalue.
Referenced by checkInput(), and render().
ilNumberInputGUI::getPostValueForComparison | ( | ) |
Definition at line 349 of file class.ilNumberInputGUI.php.
References getInput().
ilNumberInputGUI::getSize | ( | ) |
Definition at line 143 of file class.ilNumberInputGUI.php.
References $size.
Referenced by render().
ilNumberInputGUI::getSuffix | ( | ) |
Definition at line 57 of file class.ilNumberInputGUI.php.
References $suffix.
Referenced by render().
ilNumberInputGUI::getValue | ( | ) |
Definition at line 84 of file class.ilNumberInputGUI.php.
References $value.
Referenced by render().
ilNumberInputGUI::insert | ( | ilTemplate | $a_tpl | ) |
Definition at line 262 of file class.ilNumberInputGUI.php.
References ilTemplate\parseCurrentBlock(), render(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
ilNumberInputGUI::maxvalueShouldBeLess | ( | ) |
Definition at line 128 of file class.ilNumberInputGUI.php.
References $maxvalueShouldBeLess.
Referenced by checkInput(), render(), and setMaxvalueShouldBeLess().
ilNumberInputGUI::minvalueShouldBeGreater | ( | ) |
Definition at line 117 of file class.ilNumberInputGUI.php.
References $minvalueShouldBeGreater.
Referenced by checkInput(), render(), and setMinvalueShouldBeGreater().
ilNumberInputGUI::render | ( | ) |
Definition at line 271 of file class.ilNumberInputGUI.php.
References ilFormPropertyGUI\$lng, $tpl, areDecimalsAllowed(), getDecimals(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getFieldId(), ilFormPropertyGUI\getInfo(), getMaxLength(), getMaxValue(), getMinValue(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getSize(), getSuffix(), getValue(), maxvalueShouldBeLess(), minvalueShouldBeGreater(), ilLegacyFormElementsUtil\prepareFormOutput(), and ilLanguage\txt().
Referenced by insert().
ilNumberInputGUI::setClientSideValidation | ( | bool | $validate | ) |
Definition at line 354 of file class.ilNumberInputGUI.php.
ilNumberInputGUI::setDecimals | ( | int | $a_decimals | ) |
Definition at line 174 of file class.ilNumberInputGUI.php.
References allowDecimals().
Referenced by SurveyMetricQuestionGUI\addFieldsToEditForm(), and ilObjFileAccessSettingsGUI\initSettingsForm().
ilNumberInputGUI::setMaxLength | ( | int | $a_maxlength | ) |
Definition at line 101 of file class.ilNumberInputGUI.php.
Referenced by ilObjMediaCastSettingsGUI\getForm(), ilPCGridGUI\initCreationForm(), ilUserProfileInfoSettingsGUI\initForm(), ilPCTabsGUI\initForm(), ilPCListGUI\initListForm(), ilObjSCORMLearningModuleGUI\initPropertiesForm(), ilObjSCORM2004LearningModuleGUI\initPropertiesForm(), and ilObjRepositorySettingsGUI\initSettingsForm().
ilNumberInputGUI::setMaxValue | ( | float | $a_maxvalue, |
bool | $a_display_always = false |
||
) |
Definition at line 161 of file class.ilNumberInputGUI.php.
Referenced by ilObjMediaCastGUI\initSettingsForm(), and ilObjStyleSheetGUI\initTemplateGenerationForm().
ilNumberInputGUI::setMaxvalueShouldBeLess | ( | bool | $a_bool | ) |
Definition at line 123 of file class.ilNumberInputGUI.php.
References maxvalueShouldBeLess().
ilNumberInputGUI::setMinValue | ( | float | $a_minvalue, |
bool | $a_display_always = false |
||
) |
Definition at line 148 of file class.ilNumberInputGUI.php.
Referenced by ilConsultationHourCron\addCustomSettingsToForm(), ilExAssignmentEditorGUI\initAssignmentForm(), ilObjMediaPoolGUI\initEditCustomForm(), ilObjCourseGUI\initEditForm(), ilObjGroupGUI\initForm(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), ilStyleCharacteristicGUI\initTagStyleForm(), and assTextSubsetGUI\populateQuestionSpecificFormPart().
ilNumberInputGUI::setMinvalueShouldBeGreater | ( | bool | $a_bool | ) |
Definition at line 112 of file class.ilNumberInputGUI.php.
References minvalueShouldBeGreater().
ilNumberInputGUI::setSize | ( | int | $a_size | ) |
Definition at line 133 of file class.ilNumberInputGUI.php.
Referenced by ilCleanCOPageHistoryCronjob\addCustomSettingsToForm(), ilForumCronNotification\addCustomSettingsToForm(), SurveyMultipleChoiceQuestionGUI\addFieldsToEditForm(), ilObjTestSettingsGeneralGUI\addTestRunProperties(), ilADTLocationSearchBridgeSingle\addToForm(), ilDclMobFieldRepresentation\buildFieldCreationInput(), ilDclTextFieldRepresentation\buildFieldCreationInput(), ilCmiXapiSettingsGUI\buildForm(), ilAccountCodesGUI\initAddCodesForm(), ilRegistrationSettingsGUI\initAddCodesForm(), ilExAssignmentEditorGUI\initAssignmentForm(), ilObjBlogGUI\initEditCustomForm(), ilObjBookingPoolGUI\initEditCustomForm(), ilLTIConsumerSettingsFormGUI\initForm(), ilPCMapGUI\initForm(), ilRegistrationSettingsGUI\initForm(), ilConsultationHoursGUI\initFormSequence(), ilLPListOfSettingsGUI\initFormSettings(), ilAdvancedMDSettingsGUI\initFormSubstitutions(), ilExAssignmentEditorGUI\initPeerReviewForm(), assFormulaQuestionGUI\isSaveCommand(), ilObjExerciseGUI\listAssignmentsObject(), and assTextQuestionGUI\populateQuestionSpecificFormPart().
ilNumberInputGUI::setSuffix | ( | string | $a_value | ) |
Definition at line 52 of file class.ilNumberInputGUI.php.
Referenced by ilObjMailGUI\getGeneralSettingsForm(), ilChatroomFormFactory\getSettingsForm(), ilObjMediaPoolGUI\initEditCustomForm(), ilObjAwarenessAdministrationGUI\initFormSettings(), ilObjAdvancedEditingGUI\initGeneralPageSettingsForm(), assKprimChoiceGUI\populateQuestionSpecificFormPart(), assSingleChoiceGUI\populateQuestionSpecificFormPart(), and assMultipleChoiceGUI\populateQuestionSpecificFormPart().
ilNumberInputGUI::setValue | ( | ?string | $a_value | ) |
Definition at line 62 of file class.ilNumberInputGUI.php.
References areDecimalsAllowed(), and getDecimals().
Referenced by ilAdvancedMDFieldDefinitionText\addCustomFieldToDefinitionForm(), ilAdvancedMDFieldDefinitionInteger\addCustomFieldToDefinitionForm(), assQuestionGUI\addNumberOfTriesToFormIfNecessary(), ilECSMappingSettingsGUI\dInitFormTreeSettings(), ilCourseObjectivesGUI\initFormRandom(), ilCASSettingsGUI\initFormSettings(), ilObjRepositorySettingsGUI\initSettingsForm(), ilObjMediaCastGUI\initSettingsForm(), assErrorTextGUI\populateQuestionSpecificFormPart(), assOrderingQuestionGUI\populateQuestionSpecificFormPart(), assOrderingHorizontalGUI\populateQuestionSpecificFormPart(), assMatchingQuestionGUI\populateQuestionSpecificFormPart(), assClozeTestGUI\populateQuestionSpecificFormPart(), setValueByArray(), and unserializeData().
ilNumberInputGUI::setValueByArray | ( | array | $a_values | ) |
Definition at line 138 of file class.ilNumberInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and setValue().
ilNumberInputGUI::unserializeData | ( | string | $a_data | ) |
Definition at line 89 of file class.ilNumberInputGUI.php.
References $data, and setValue().
|
protected |
Definition at line 39 of file class.ilNumberInputGUI.php.
Referenced by areDecimalsAllowed().
|
protected |
Definition at line 40 of file class.ilNumberInputGUI.php.
|
protected |
Definition at line 38 of file class.ilNumberInputGUI.php.
Referenced by getDecimals().
|
protected |
Definition at line 29 of file class.ilNumberInputGUI.php.
Referenced by getMaxLength().
|
protected |
Definition at line 35 of file class.ilNumberInputGUI.php.
Referenced by getMaxValue().
|
protected |
Definition at line 37 of file class.ilNumberInputGUI.php.
|
protected |
Definition at line 36 of file class.ilNumberInputGUI.php.
Referenced by maxvalueShouldBeLess().
|
protected |
Definition at line 32 of file class.ilNumberInputGUI.php.
Referenced by getMinValue().
|
protected |
Definition at line 34 of file class.ilNumberInputGUI.php.
|
protected |
Definition at line 33 of file class.ilNumberInputGUI.php.
Referenced by minvalueShouldBeGreater().
|
protected |
Definition at line 30 of file class.ilNumberInputGUI.php.
Referenced by getSize().
|
protected |
Definition at line 31 of file class.ilNumberInputGUI.php.
Referenced by getSuffix().
|
protected |
Definition at line 28 of file class.ilNumberInputGUI.php.
Referenced by getValue().