Form/Field/TextField.php

Classes 
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
__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
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

_getOutputValueFromValues

_getOutputValueFromValues(  $values ) :
Arguments
$values
Details
visibility
protected
final
false
static
false

_getTrlProperties

_getTrlProperties( ) :
Details
visibility
protected
final
false
static
false

getTemplateVars

getTemplateVars(  $values,  $fieldNamePostfix,  $idPrefix ) :
Arguments
$values
$fieldNamePostfix
$idPrefix
Details
visibility
public
final
false
static
false

setAutoComplete

setAutoComplete(  $value ) : \Kwf_Form_Field_TextField

Disables browser autocompletion for this field.

Used in Frontend Forms only, in backend it's disabled by Ext always

Arguments
$value
bool
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_TextField

Set the maximum input field length allowed

Arguments
$value
bool
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_TextField

Set 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
Details
visibility
public
final
false
static
false
fluent
This method is part of a fluent interface and will return the same instance
see
addValidator
Documentation was generated by DocBlox 0.12.3.