Form/Field/NumberField.php
- package
- Form
- Classes
- Kwf_Form_Field_NumberField
Description
Numeric text field
ExtJS provides automatic keystroke filtering and numeric validation.
\Kwf_Form_Field_NumberField
- Extends from
- \Kwf_Form_Field_TextField
- package
- Form
- Methods
- __construct
- _addValidators
- _getInputProperties
- _getTrlProperties
- _getValueFromPostData
- _getValueToSaveFromPostData
- getMetaData
- getTemplateVars
- setAllowDecimals
- setAllowNegative
- setDecimalPrecision
- setDecimalSeparator
- setMaxValue
- setMinValue
- trlStaticExecute
Description
Numeric text field
ExtJS provides automatic keystroke filtering and numeric validation.
Methods
__construct
__construct(
$field_name
=
null, $field_label
=
null
)
:
Zeigt mehrere Checkboxes an und speichert diese in einer Relationstabelle
Arguments
- $field_name
- $field_label
Details
- visibility
- public
- final
- false
- static
- false
_addValidators
_addValidators(
)
:
Add validators to the field here, called in prepareSave
Details
- visibility
- protected
- final
- false
- static
- false
_getInputProperties
_getInputProperties(
$values, $fieldNamePostfix, $idPrefix
)
:
Arguments
- $values
- $fieldNamePostfix
- $idPrefix
Details
- visibility
- protected
- final
- false
- static
- false
_getTrlProperties
_getTrlProperties(
)
:
Details
- visibility
- protected
- final
- false
- static
- false
_getValueFromPostData
_getValueFromPostData(
$postData
)
:
Arguments
- $postData
Details
- visibility
- protected
- final
- false
- static
- false
_getValueToSaveFromPostData
_getValueToSaveFromPostData(
$postData
)
:
Arguments
- $postData
Details
- visibility
- protected
- final
- false
- static
- false
getMetaData
getMetaData(
$model
)
:
Arguments
- $model
Details
- visibility
- public
- final
- false
- static
- false
getTemplateVars
getTemplateVars(
$values, $fieldNamePostfix, $idPrefix
)
:
Arguments
- $values
- $fieldNamePostfix
- $idPrefix
Details
- visibility
- public
- final
- false
- static
- false
setAllowDecimals
setAllowDecimals(
$value
)
:
\Kwf_Form_Field_NumberField
False to disallow decimal values (defaults to true)
Arguments
- $value
- bool
Output
Details
- visibility
- public
- final
- false
- static
- false
- fluent
- This method is part of a fluent interface and will return the same instance
setAllowNegative
setAllowNegative(
$value
)
:
\Kwf_Form_Field_NumberField
False to prevent entering a negative sign (defaults to true)
Arguments
- $value
- bool
Output
Details
- visibility
- public
- final
- false
- static
- false
- fluent
- This method is part of a fluent interface and will return the same instance
setDecimalPrecision
setDecimalPrecision(
$value
)
:
\Kwf_Form_Field_NumberField
The maximum precision to display after the decimal separator (defaults to 2)
Arguments
- $value
- int
Output
Details
- visibility
- public
- final
- false
- static
- false
- fluent
- This method is part of a fluent interface and will return the same instance
setDecimalSeparator
setDecimalSeparator(
$value
)
:
\Kwf_Form_Field_NumberField
Character(s) to allow as the decimal separator (default depends on current language)
Arguments
- $value
- string
Output
Details
- visibility
- public
- final
- false
- static
- false
- fluent
- This method is part of a fluent interface and will return the same instance
setMaxValue
setMaxValue(
$value
)
:
\Kwf_Form_Field_NumberField
The maximum allowed value
Arguments
- $value
- float
Output
Details
- visibility
- public
- final
- false
- static
- false
- fluent
- This method is part of a fluent interface and will return the same instance
setMinValue
setMinValue(
$value
)
:
\Kwf_Form_Field_NumberField
The minimum allowed value
Arguments
- $value
- float
Output
Details
- visibility
- public
- final
- false
- static
- false
- fluent
- This method is part of a fluent interface and will return the same instance
trlStaticExecute
trlStaticExecute(
$language
=
null
)
:
Arguments
- $language
Details
- visibility
- public
- final
- false
- static
- false