ILIAS
Release_4_2_x_branch Revision 61807
|
This class represents a number property in a property form. More...
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. | |
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. | |
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) |
Protected Attributes | |
$value | |
$maxlength = 200 | |
$size = 40 | |
$suffix | |
$minvalue = false | |
$minvalueShouldBeGreater = false | |
$maxvalue = false | |
$maxvalueShouldBeLess = 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 = "" |
Additional Inherited Members | |
Protected Member Functions inherited from ilFormPropertyGUI | |
setType ($a_type) | |
Set Type. |
This class represents a number property in a property form.
Definition at line 31 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 48 of file class.ilNumberInputGUI.php.
ilNumberInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Definition at line 248 of file class.ilNumberInputGUI.php.
References $_POST, $lng, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), getMaxValue(), getMinValue(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), maxvalueShouldBeLess(), minvalueShouldBeGreater(), ilFormPropertyGUI\setAlert(), and ilUtil\stripSlashes().
ilNumberInputGUI::getDecimals | ( | ) |
Get Decimal Places.
Definition at line 238 of file class.ilNumberInputGUI.php.
Referenced by render().
ilNumberInputGUI::getMaxLength | ( | ) |
Get Max Length.
Definition at line 108 of file class.ilNumberInputGUI.php.
References $maxlength.
Referenced by render().
ilNumberInputGUI::getMaxValue | ( | ) |
Get Maximum Value.
Definition at line 218 of file class.ilNumberInputGUI.php.
References $maxvalue.
Referenced by checkInput(), and render().
ilNumberInputGUI::getMinValue | ( | ) |
Get Minimum Value.
Definition at line 198 of file class.ilNumberInputGUI.php.
References $minvalue.
Referenced by checkInput(), and render().
ilNumberInputGUI::getPostValueForComparison | ( | ) |
parse post value to make it comparable
used by combination input gui
Definition at line 390 of file class.ilNumberInputGUI.php.
References $_POST, $value, ilFormPropertyGUI\getPostVar(), and ilUtil\stripSlashes().
ilNumberInputGUI::getSize | ( | ) |
Get Size.
Definition at line 178 of file class.ilNumberInputGUI.php.
References $size.
Referenced by render().
ilNumberInputGUI::getSuffix | ( | ) |
Get suffix.
Definition at line 68 of file class.ilNumberInputGUI.php.
References $suffix.
Referenced by render().
ilNumberInputGUI::getValue | ( | ) |
Get Value.
Definition at line 88 of file class.ilNumberInputGUI.php.
References $value.
Referenced by render().
ilNumberInputGUI::insert | ( | & | $a_tpl | ) |
Insert property html.
Definition at line 322 of file class.ilNumberInputGUI.php.
References render().
ilNumberInputGUI::maxvalueShouldBeLess | ( | ) |
Get maxvalueShouldBeLess.
Definition at line 148 of file class.ilNumberInputGUI.php.
References $maxvalueShouldBeLess.
Referenced by checkInput(), render(), and setMaxvalueShouldBeLess().
ilNumberInputGUI::minvalueShouldBeGreater | ( | ) |
Get minvalueShouldBeGreater.
Definition at line 128 of file class.ilNumberInputGUI.php.
References $minvalueShouldBeGreater.
Referenced by checkInput(), render(), and setMinvalueShouldBeGreater().
ilNumberInputGUI::render | ( | ) |
Insert property html.
Definition at line 334 of file class.ilNumberInputGUI.php.
References $lng, $tpl, getDecimals(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getFieldId(), getMaxLength(), getMaxValue(), getMinValue(), ilFormPropertyGUI\getPostVar(), getSize(), getSuffix(), getValue(), maxvalueShouldBeLess(), minvalueShouldBeGreater(), and ilUtil\prepareFormOutput().
Referenced by insert().
ilNumberInputGUI::setDecimals | ( | $a_decimals | ) |
Set Decimal Places.
int | $a_decimals | Decimal Places |
Definition at line 228 of file class.ilNumberInputGUI.php.
Referenced by SurveyMetricQuestionGUI\editQuestion(), and assJavaAppletGUI\editQuestion().
ilNumberInputGUI::setMaxLength | ( | $a_maxlength | ) |
Set Max Length.
int | $a_maxlength | Max Length |
Definition at line 98 of file class.ilNumberInputGUI.php.
Referenced by ilBasicSkillTemplateGUI\initForm(), ilPCTabsGUI\initForm(), ilSkillCategoryGUI\initForm(), ilSkillTemplateReferenceGUI\initForm(), ilBasicSkillGUI\initForm(), ilSkillTreeNodeGUI\initForm(), ilObjSystemFolderGUI\initJavaServerForm(), ilPCListGUI\initListForm(), and ilObjSCORM2004LearningModuleGUI\initPropertiesEditableForm().
ilNumberInputGUI::setMaxValue | ( | $a_maxvalue | ) |
Set Maximum Value.
float | $a_maxvalue | Maximum Value |
Definition at line 208 of file class.ilNumberInputGUI.php.
Referenced by ilObjStyleSheetGUI\initTemplateGenerationForm().
ilNumberInputGUI::setMaxvalueShouldBeLess | ( | $a_bool | ) |
Set maxvalueShouldBeLess.
boolean | $a_bool | true if the maximum value should be less than maxvalue |
Definition at line 138 of file class.ilNumberInputGUI.php.
References maxvalueShouldBeLess().
ilNumberInputGUI::setMinValue | ( | $a_minvalue | ) |
Set Minimum Value.
float | $a_minvalue | Minimum Value |
Definition at line 188 of file class.ilNumberInputGUI.php.
Referenced by assTextSubsetGUI\editQuestion(), assMultipleChoiceGUI\editQuestion(), assSingleChoiceGUI\editQuestion(), ilChatroomFormFactory\getClientSettingsForm(), ilChatroomFormFactory\getGeneralSettingsForm(), ilObjMediaPoolGUI\initEditCustomForm(), ilObjCourseGUI\initEditForm(), ilObjRoleGUI\initFormRoleProperties(), ilObjStyleSheetGUI\initTagStyleForm(), and ilObjSystemFolderGUI\initWebServicesForm().
ilNumberInputGUI::setMinvalueShouldBeGreater | ( | $a_bool | ) |
Set minvalueShouldBeGreater.
boolean | $a_bool | true if the minimum value should be greater than minvalue |
Definition at line 118 of file class.ilNumberInputGUI.php.
References minvalueShouldBeGreater().
ilNumberInputGUI::setSize | ( | $a_size | ) |
Set Size.
int | $a_size | Size |
Definition at line 158 of file class.ilNumberInputGUI.php.
Referenced by ilPaymentCouponGUI\addCoupon(), assTextQuestionGUI\editQuestion(), assNumericGUI\editQuestion(), SurveyMultipleChoiceQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), ilObjPaymentSettingsGUI\generalSettingsObject(), ilPaymentCouponGUI\generateCodes(), ilAccountCodesGUI\initAddCodesForm(), ilRegistrationSettingsGUI\initAddCodesForm(), ilObjSystemFolderGUI\initCronJobsForm(), ilObjExerciseGUI\initEditCustomForm(), ilRegistrationSettingsGUI\initForm(), ilPCMapGUI\initForm(), ilConsultationHoursGUI\initFormSequence(), ilLPListOfSettingsGUI\initFormSettings(), and ilObjSystemFolderGUI\initJavaServerIniForm().
ilNumberInputGUI::setSuffix | ( | $a_value | ) |
Set suffix.
string | $a_value | suffix |
Definition at line 58 of file class.ilNumberInputGUI.php.
ilNumberInputGUI::setValue | ( | $a_value | ) |
Set Value.
string | $a_value | Value |
Definition at line 78 of file class.ilNumberInputGUI.php.
Referenced by assQuestionGUI\addBasicQuestionFormProperties(), SurveyMetricQuestionGUI\editQuestion(), assTextQuestionGUI\editQuestion(), assFileUploadGUI\editQuestion(), assOrderingHorizontalGUI\editQuestion(), assNumericGUI\editQuestion(), assErrorTextGUI\editQuestion(), assJavaAppletGUI\editQuestion(), assFlashQuestionGUI\editQuestion(), assClozeTestGUI\editQuestion(), assOrderingQuestionGUI\editQuestion(), assMatchingQuestionGUI\editQuestion(), ilCASSettingsGUI\initFormSettings(), ilObjSystemFolderGUI\initJavaServerIniForm(), ilObjPaymentSettingsGUI\InvoiceNumberObject(), ilObjTestGUI\randomQuestionsObject(), and setValueByArray().
ilNumberInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Definition at line 168 of file class.ilNumberInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and setValue().
|
protected |
Definition at line 34 of file class.ilNumberInputGUI.php.
Referenced by getMaxLength().
|
protected |
Definition at line 39 of file class.ilNumberInputGUI.php.
Referenced by getMaxValue().
|
protected |
Definition at line 40 of file class.ilNumberInputGUI.php.
Referenced by maxvalueShouldBeLess().
|
protected |
Definition at line 37 of file class.ilNumberInputGUI.php.
Referenced by getMinValue().
|
protected |
Definition at line 38 of file class.ilNumberInputGUI.php.
Referenced by minvalueShouldBeGreater().
|
protected |
Definition at line 35 of file class.ilNumberInputGUI.php.
Referenced by getSize().
|
protected |
Definition at line 36 of file class.ilNumberInputGUI.php.
Referenced by getSuffix().
|
protected |
Definition at line 33 of file class.ilNumberInputGUI.php.
Referenced by getPostValueForComparison(), and getValue().