Form/Field/TextField.php
- package
- Form
- Classes
- Kwf_Form_Field_TextField
Description
A standard textfield form field
\Kwf_Form_Field_TextField
- Extends from
- \Kwf_Form_Field_SimpleAbstract
- package
- Form
 Methods Methods
- __construct
- _addValidators
- _getInputProperties
- _getOutputValueFromValues
- _getTrlProperties
- getTemplateVars
- setAutoComplete
- setMaxLength
- setVtype
Description
A standard textfield form field
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
_getOutputValueFromValues
_getOutputValueFromValues(
           $values
          )
        
        :
        Arguments
- $values
 Details
 Details
- visibility
- protected
- final
- false
- static
- false
_getTrlProperties
_getTrlProperties(
          
          )
        
        :
        
 Details
 Details
- visibility
- protected
- final
- false
- static
- false
getTemplateVars
getTemplateVars(
           $values,  $fieldNamePostfix,  $idPrefix
          )
        
        :
        Arguments
- $values
- $fieldNamePostfix
- $idPrefix
 Details
 Details
- visibility
- public
- final
- false
- static
- false
setAutoComplete
setAutoComplete(
           $value
          )
        
        :
        \Kwf_Form_Field_TextFieldDisables browser autocompletion for this field.
Used in Frontend Forms only, in backend it's disabled by Ext always
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
setMaxLength
setMaxLength(
           $value
          )
        
        :
        \Kwf_Form_Field_TextFieldSet the maximum input field length allowed
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
setVtype
setVtype(
           $value
          )
        
        :
        \Kwf_Form_Field_TextFieldSet the validator used for this textfield. Validation will be done Server Side and for AutoForms in JavaScript
Additional Zend Validators can be added by addValidator
Possible values are: - email - url - alpha - alphanum - num
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
- see
- addValidator