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 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
 Details
- visibility
- public
- final
- false
- static
- false
_addValidators
_addValidators(
          
          )
        
        :
        Add validators to the field here, called in prepareSave
 Details
 Details
- visibility
- protected
- final
- false
- static
- false
_getInputProperties
_getInputProperties(
           $values,  $fieldNamePostfix,  $idPrefix
          )
        
        :
        Arguments
- $values
- $fieldNamePostfix
- $idPrefix
 Details
 Details
- visibility
- protected
- final
- false
- static
- false
_getTrlProperties
_getTrlProperties(
          
          )
        
        :
        
 Details
 Details
- visibility
- protected
- final
- false
- static
- false
_getValueFromPostData
_getValueFromPostData(
           $postData
          )
        
        :
        Arguments
- $postData
 Details
 Details
- visibility
- protected
- final
- false
- static
- false
_getValueToSaveFromPostData
_getValueToSaveFromPostData(
           $postData
          )
        
        :
        Arguments
- $postData
 Details
 Details
- visibility
- protected
- final
- false
- static
- false
getMetaData
getMetaData(
           $model
          )
        
        :
        Arguments
- $model
 Details
 Details
- visibility
- public
- final
- false
- static
- false
getTemplateVars
getTemplateVars(
           $values,  $fieldNamePostfix,  $idPrefix
          )
        
        :
        Arguments
- $values
- $fieldNamePostfix
- $idPrefix
 Details
 Details
- visibility
- public
- final
- false
- static
- false
setAllowDecimals
setAllowDecimals(
           $value
          )
        
        :
        \Kwf_Form_Field_NumberFieldFalse to disallow decimal values (defaults to true)
Arguments
- $value
- bool
Output
 Details
 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_NumberFieldFalse to prevent entering a negative sign (defaults to true)
Arguments
- $value
- bool
Output
 Details
 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_NumberFieldThe maximum precision to display after the decimal separator (defaults to 2)
Arguments
- $value
- int
Output
 Details
 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_NumberFieldCharacter(s) to allow as the decimal separator (default depends on current language)
Arguments
- $value
- string
Output
 Details
 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_NumberFieldThe maximum allowed value
Arguments
- $value
- float
Output
 Details
 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_NumberFieldThe minimum allowed value
Arguments
- $value
- float
Output
 Details
 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
 Details
- visibility
- public
- final
- false
- static
- false