ILIAS
Release_3_10_x_branch Revision 61812
|
This class represents a number property in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. | |
setValue ($a_value) | |
Set Value. | |
getValue () | |
Get Value. | |
setMaxLength ($a_maxlength) | |
Set Max Length. | |
getMaxLength () | |
Get Max Length. | |
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. | |
Public Member Functions inherited from ilSubEnabledFormPropertyGUI | |
addSubItem ($a_item) | |
Add Subitem. | |
getSubItems () | |
Get Subitems. | |
setSubformMode ($a_subformmode) | |
Set Subform Mode. | |
getSubformMode () | |
Get Subform Mode. | |
checkSubItemsInput () | |
Check SubItems. | |
getSubForm () | |
Get sub form html. | |
Public Member Functions inherited from ilFormPropertyGUI | |
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. |
Protected Attributes | |
$value | |
$maxlength = 200 | |
$size = 40 | |
$minvalue = false | |
$maxvalue = false | |
Protected Attributes inherited from ilSubEnabledFormPropertyGUI | |
$sub_items = array() | |
$subformmode = "bottom" | |
Protected Attributes inherited from ilFormPropertyGUI | |
$type | |
$title | |
$postvar | |
$info | |
$alert | |
$required = false |
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 45 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 185 of file class.ilNumberInputGUI.php.
References $lng, ilSubEnabledFormPropertyGUI\checkSubItemsInput(), getMaxValue(), getMinValue(), ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), ilFormPropertyGUI\setAlert(), and ilUtil\stripSlashes().
ilNumberInputGUI::getDecimals | ( | ) |
Get Decimal Places.
Definition at line 175 of file class.ilNumberInputGUI.php.
Referenced by insert().
ilNumberInputGUI::getMaxLength | ( | ) |
Get Max Length.
Definition at line 85 of file class.ilNumberInputGUI.php.
References $maxlength.
Referenced by insert().
ilNumberInputGUI::getMaxValue | ( | ) |
Get Maximum Value.
Definition at line 155 of file class.ilNumberInputGUI.php.
References $maxvalue.
Referenced by checkInput(), and insert().
ilNumberInputGUI::getMinValue | ( | ) |
Get Minimum Value.
Definition at line 135 of file class.ilNumberInputGUI.php.
References $minvalue.
Referenced by checkInput(), and insert().
ilNumberInputGUI::getSize | ( | ) |
Get Size.
Definition at line 115 of file class.ilNumberInputGUI.php.
References $size.
Referenced by insert().
ilNumberInputGUI::getValue | ( | ) |
Get Value.
Definition at line 65 of file class.ilNumberInputGUI.php.
References $value.
Referenced by insert().
ilNumberInputGUI::insert | ( | & | $a_tpl | ) |
Insert property html.
Definition at line 231 of file class.ilNumberInputGUI.php.
References $lng, getDecimals(), ilFormPropertyGUI\getDisabled(), ilFormPropertyGUI\getFieldId(), getMaxLength(), getMaxValue(), getMinValue(), ilFormPropertyGUI\getPostVar(), getSize(), getValue(), and ilUtil\prepareFormOutput().
ilNumberInputGUI::setDecimals | ( | $a_decimals | ) |
Set Decimal Places.
int | $a_decimals | Decimal Places |
Definition at line 165 of file class.ilNumberInputGUI.php.
ilNumberInputGUI::setMaxLength | ( | $a_maxlength | ) |
Set Max Length.
int | $a_maxlength | Max Length |
Definition at line 75 of file class.ilNumberInputGUI.php.
ilNumberInputGUI::setMaxValue | ( | $a_maxvalue | ) |
Set Maximum Value.
float | $a_maxvalue | Maximum Value |
Definition at line 145 of file class.ilNumberInputGUI.php.
ilNumberInputGUI::setMinValue | ( | $a_minvalue | ) |
Set Minimum Value.
float | $a_minvalue | Minimum Value |
Definition at line 125 of file class.ilNumberInputGUI.php.
ilNumberInputGUI::setSize | ( | $a_size | ) |
Set Size.
int | $a_size | Size |
Definition at line 95 of file class.ilNumberInputGUI.php.
Referenced by ilPCMapGUI\initForm().
ilNumberInputGUI::setValue | ( | $a_value | ) |
Set Value.
string | $a_value | Value |
Definition at line 55 of file class.ilNumberInputGUI.php.
Referenced by assTextQuestionGUI\editQuestion(), and setValueByArray().
ilNumberInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Definition at line 105 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 37 of file class.ilNumberInputGUI.php.
Referenced by getMaxValue().
|
protected |
Definition at line 36 of file class.ilNumberInputGUI.php.
Referenced by getMinValue().
|
protected |
Definition at line 35 of file class.ilNumberInputGUI.php.
Referenced by getSize().
|
protected |
Definition at line 33 of file class.ilNumberInputGUI.php.
Referenced by getValue().