|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
This class represents a number property in a property form. More...
Inheritance diagram for ilNumberInputGUI:
Collaboration diagram for ilNumberInputGUI:Public Member Functions | |
| __construct ($a_title="", $a_postvar="") | |
| Constructor. More... | |
| setSuffix ($a_value) | |
| Set suffix. More... | |
| getSuffix () | |
| Get suffix. More... | |
| setValue ($a_value) | |
| Set Value. More... | |
| getValue () | |
| Get Value. More... | |
| setMaxLength ($a_maxlength) | |
| Set Max Length. More... | |
| getMaxLength () | |
| Get Max Length. More... | |
| setMinvalueShouldBeGreater ($a_bool) | |
| Set minvalueShouldBeGreater. More... | |
| minvalueShouldBeGreater () | |
| Get minvalueShouldBeGreater. More... | |
| setMaxvalueShouldBeLess ($a_bool) | |
| Set maxvalueShouldBeLess. More... | |
| maxvalueShouldBeLess () | |
| Get maxvalueShouldBeLess. More... | |
| setSize ($a_size) | |
| Set Size. More... | |
| setValueByArray ($a_values) | |
| Set value by array. More... | |
| getSize () | |
| Get Size. More... | |
| setMinValue ($a_minvalue, $a_display_always=false) | |
| Set Minimum Value. More... | |
| getMinValue () | |
| Get Minimum Value. More... | |
| setMaxValue ($a_maxvalue, $a_display_always=false) | |
| Set Maximum Value. More... | |
| getMaxValue () | |
| Get Maximum Value. More... | |
| setDecimals ($a_decimals) | |
| Set Decimal Places. More... | |
| getDecimals () | |
| Get Decimal Places. More... | |
| allowDecimals ($a_value) | |
| Toggle Decimals. More... | |
| areDecimalsAllowed () | |
| checkInput () | |
| Check input, strip slashes etc. More... | |
| insert ($a_tpl) | |
| Insert property html. More... | |
| render () | |
| Insert property html. More... | |
| getPostValueForComparison () | |
| parse post value to make it comparable More... | |
| setClientSideValidation (bool $validate) | |
Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
| addSubItem ($a_item) | |
| Add Subitem. More... | |
| getSubItems () | |
| Get Subitems. More... | |
| getSubInputItemsRecursive () | |
| returns a flat array of possibly existing subitems recursively More... | |
| checkSubItemsInput () | |
| Check SubItems. More... | |
| getSubForm () | |
| Get sub form html. More... | |
| getItemByPostVar ($a_post_var) | |
| Get item by post var. More... | |
Public Member Functions inherited from ilFormPropertyGUI | |
| __construct ($a_title="", $a_postvar="") | |
| Constructor. More... | |
| executeCommand () | |
| Execute command. More... | |
| getType () | |
| Get Type. More... | |
| setTitle ($a_title) | |
| Set Title. More... | |
| getTitle () | |
| Get Title. More... | |
| setPostVar ($a_postvar) | |
| Set Post Variable. More... | |
| getPostVar () | |
| Get Post Variable. More... | |
| getFieldId () | |
| Get Post Variable. More... | |
| setInfo ($a_info) | |
| Set Information Text. More... | |
| getInfo () | |
| Get Information Text. More... | |
| setAlert ($a_alert) | |
| Set Alert Text. More... | |
| getAlert () | |
| Get Alert Text. More... | |
| setRequired ($a_required) | |
| Set Required. More... | |
| getRequired () | |
| Get Required. More... | |
| setDisabled ($a_disabled) | |
| Set Disabled. More... | |
| getDisabled () | |
| Get Disabled. More... | |
| checkInput () | |
| Check input, strip slashes etc. More... | |
| setParentForm ($a_parentform) | |
| Set Parent Form. More... | |
| getParentForm () | |
| Get Parent Form. More... | |
| setParent ($a_val) | |
| Set Parent GUI object. More... | |
| getParent () | |
| Get Parent GUI object. More... | |
| getSubForm () | |
| Get sub form html. More... | |
| hideSubForm () | |
| Sub form hidden on init? More... | |
| setHiddenTitle ($a_val) | |
| Set hidden title (for screenreaders) More... | |
| getHiddenTitle () | |
| Get hidden title. More... | |
| getItemByPostVar ($a_post_var) | |
| Get item by post var. More... | |
| serializeData () | |
| serialize data More... | |
| unserializeData ($a_data) | |
| unserialize data More... | |
| writeToSession () | |
| Write to session. More... | |
| clearFromSession () | |
| Clear session value. More... | |
| readFromSession () | |
| Read from session. More... | |
| getHiddenTag ($a_post_var, $a_value) | |
| Get hidden tag (used for disabled properties) More... | |
| setMulti ($a_multi, $a_sortable=false, $a_addremove=true) | |
| Set Multi. More... | |
| getMulti () | |
| Get Multi. More... | |
| setMultiValues (array $a_values) | |
| Set multi values. More... | |
| getMultiValues () | |
| Get multi values. More... | |
| getContentOutsideFormTag () | |
| Get content that has to reside outside of the parent form tag, e.g. More... | |
| stripSlashesAddSpaceFallback ($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... | |
Protected Attributes | |
| $value | |
| $maxlength = 200 | |
| $size = 40 | |
| $suffix | |
| $minvalue = false | |
| $minvalueShouldBeGreater = false | |
| $minvalue_visible = false | |
| $maxvalue = false | |
| $maxvalueShouldBeLess = false | |
| $maxvalue_visible = false | |
| $decimals | |
| $allow_decimals = false | |
| $client_side_validation = false | |
Protected Attributes inherited from ilSubEnabledFormPropertyGUI | |
| $sub_items = array() | |
Protected Attributes inherited from ilFormPropertyGUI | |
| $ctrl | |
| $lng | |
| $type | |
| $title | |
| $postvar | |
| $info | |
| $alert | |
| $required = false | |
| $parentgui | |
| $parentform | |
| $hidden_title = "" | |
| $multi = false | |
| $multi_sortable = false | |
| $multi_addremove = true | |
| $multi_values | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilFormPropertyGUI | |
| static | removeProhibitedCharacters ($a_text) |
| Remove prohibited characters see #19159. More... | |
Protected Member Functions inherited from ilFormPropertyGUI | |
| setType ($a_type) | |
| Set Type. More... | |
| getMultiIconsHTML () | |
| Get HTML for multiple value icons. More... | |
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 36 of file class.ilNumberInputGUI.php.
References $DIC, and ILIAS\GlobalScreen\Provider\__construct().
Here is the call graph for this function:| ilNumberInputGUI::allowDecimals | ( | $a_value | ) |
Toggle Decimals.
| bool | $a_value |
Definition at line 262 of file class.ilNumberInputGUI.php.
Referenced by setDecimals().
Here is the caller graph for this function:| ilNumberInputGUI::areDecimalsAllowed | ( | ) |
Definition at line 272 of file class.ilNumberInputGUI.php.
References $allow_decimals.
Referenced by render(), and setValue().
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.
Reimplemented in ilChatroomMessageDeletionThresholdInputGUI.
Definition at line 282 of file class.ilNumberInputGUI.php.
References $_POST, ilFormPropertyGUI\$lng, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), getMaxValue(), getMinValue(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), maxvalueShouldBeLess(), minvalueShouldBeGreater(), ilFormPropertyGUI\setAlert(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilNumberInputGUI::getDecimals | ( | ) |
Get Decimal Places.
Definition at line 252 of file class.ilNumberInputGUI.php.
References $decimals.
Referenced by render(), and setValue().
Here is the caller graph for this function:| ilNumberInputGUI::getMaxLength | ( | ) |
Get Max Length.
Definition at line 115 of file class.ilNumberInputGUI.php.
References $maxlength.
Referenced by render().
Here is the caller graph for this function:| ilNumberInputGUI::getMaxValue | ( | ) |
Get Maximum Value.
Definition at line 229 of file class.ilNumberInputGUI.php.
References $maxvalue.
Referenced by checkInput(), and render().
Here is the caller graph for this function:| ilNumberInputGUI::getMinValue | ( | ) |
Get Minimum Value.
Definition at line 207 of file class.ilNumberInputGUI.php.
References $minvalue.
Referenced by checkInput(), and render().
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 420 of file class.ilNumberInputGUI.php.
References $_POST, $value, ilFormPropertyGUI\getPostVar(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilNumberInputGUI::getSize | ( | ) |
Get Size.
Definition at line 185 of file class.ilNumberInputGUI.php.
References $size.
Referenced by render().
Here is the caller graph for this function:| ilNumberInputGUI::getSuffix | ( | ) |
Get suffix.
Definition at line 59 of file class.ilNumberInputGUI.php.
References $suffix.
Referenced by render().
Here is the caller graph for this function:| ilNumberInputGUI::getValue | ( | ) |
Get Value.
Definition at line 95 of file class.ilNumberInputGUI.php.
References $value.
Referenced by ilChatroomMessageDeletionThresholdInputGUI\checkInput(), and render().
Here is the caller graph for this function:| ilNumberInputGUI::insert | ( | $a_tpl | ) |
Insert property html.
Definition at line 344 of file class.ilNumberInputGUI.php.
References render().
Here is the call graph for this function:| ilNumberInputGUI::maxvalueShouldBeLess | ( | ) |
Get maxvalueShouldBeLess.
Definition at line 155 of file class.ilNumberInputGUI.php.
References $maxvalueShouldBeLess.
Referenced by checkInput(), render(), and setMaxvalueShouldBeLess().
Here is the caller graph for this function:| ilNumberInputGUI::minvalueShouldBeGreater | ( | ) |
Get minvalueShouldBeGreater.
Definition at line 135 of file class.ilNumberInputGUI.php.
References $minvalueShouldBeGreater.
Referenced by checkInput(), render(), and setMinvalueShouldBeGreater().
Here is the caller graph for this function:| ilNumberInputGUI::render | ( | ) |
Insert property html.
Definition at line 356 of file class.ilNumberInputGUI.php.
References ilFormPropertyGUI\$lng, $tpl, areDecimalsAllowed(), getDecimals(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getFieldId(), getMaxLength(), getMaxValue(), getMinValue(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), getSize(), getSuffix(), getValue(), maxvalueShouldBeLess(), minvalueShouldBeGreater(), and ilUtil\prepareFormOutput().
Referenced by insert().
Here is the call graph for this function:
Here is the caller graph for this function:| ilNumberInputGUI::setClientSideValidation | ( | bool | $validate | ) |
Definition at line 428 of file class.ilNumberInputGUI.php.
| ilNumberInputGUI::setDecimals | ( | $a_decimals | ) |
Set Decimal Places.
| int | $a_decimals | Decimal Places |
Definition at line 239 of file class.ilNumberInputGUI.php.
References allowDecimals().
Here is the call graph for this function:| ilNumberInputGUI::setMaxLength | ( | $a_maxlength | ) |
Set Max Length.
| int | $a_maxlength | Max Length |
Definition at line 105 of file class.ilNumberInputGUI.php.
| ilNumberInputGUI::setMaxValue | ( | $a_maxvalue, | |
$a_display_always = false |
|||
| ) |
Set Maximum Value.
| float | $a_maxvalue | Maximum Value |
| bool | $a_display_always |
Definition at line 218 of file class.ilNumberInputGUI.php.
| ilNumberInputGUI::setMaxvalueShouldBeLess | ( | $a_bool | ) |
Set maxvalueShouldBeLess.
| boolean | $a_bool | true if the maximum value should be less than maxvalue |
Definition at line 145 of file class.ilNumberInputGUI.php.
References maxvalueShouldBeLess().
Here is the call graph for this function:| ilNumberInputGUI::setMinValue | ( | $a_minvalue, | |
$a_display_always = false |
|||
| ) |
Set Minimum Value.
| float | $a_minvalue | Minimum Value |
| bool | $a_display_always |
Definition at line 196 of file class.ilNumberInputGUI.php.
| ilNumberInputGUI::setMinvalueShouldBeGreater | ( | $a_bool | ) |
Set minvalueShouldBeGreater.
| boolean | $a_bool | true if the minimum value should be greater than minvalue |
Definition at line 125 of file class.ilNumberInputGUI.php.
References minvalueShouldBeGreater().
Here is the call graph for this function:| ilNumberInputGUI::setSize | ( | $a_size | ) |
Set Size.
| int | $a_size | Size |
Definition at line 165 of file class.ilNumberInputGUI.php.
| ilNumberInputGUI::setSuffix | ( | $a_value | ) |
Set suffix.
| string | $a_value | suffix |
Definition at line 49 of file class.ilNumberInputGUI.php.
| ilNumberInputGUI::setValue | ( | $a_value | ) |
Set Value.
| string | $a_value | Value |
Definition at line 69 of file class.ilNumberInputGUI.php.
References areDecimalsAllowed(), and getDecimals().
Referenced by setValueByArray().
Here is the call 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 175 of file class.ilNumberInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and setValue().
Referenced by ilChatroomMessageDeletionThresholdInputGUI\checkInput().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 27 of file class.ilNumberInputGUI.php.
Referenced by areDecimalsAllowed().
|
protected |
Definition at line 28 of file class.ilNumberInputGUI.php.
|
protected |
Definition at line 26 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 23 of file class.ilNumberInputGUI.php.
Referenced by getMaxValue().
|
protected |
Definition at line 25 of file class.ilNumberInputGUI.php.
|
protected |
Definition at line 24 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 22 of file class.ilNumberInputGUI.php.
|
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().