Form/Field/Abstract.php
- package
- Form
- Classes
- Kwf_Form_Field_Abstract
Description
Base class for all form fields
\Kwf_Form_Field_Abstract
- Implements
- \Kwf_Collection_Item_Interface
- package
- Form
- Properties
- $_validators
- Methods
- __call
- __construct
- _addValidators
- _getTrlProperties
- _init
- _processChildren
- addValidator
- afterSave
- clearValidators
- delete
- getByName
- getChildren
- getData
- getFieldName
- getFrontendMetaData
- getMetaData
- getName
- getProperty
- getTemplateVars
- getValidators
- hasChildren
- initFields
- load
- mask
- prepareSave
- processInput
- save
- setData
- setFieldLabel
- setLabelSeparator
- setName
- setProperties
- setProperty
- toDebug
- trlStaticExecute
- validate
Description
Base class for all form fields
Properties
$_validators
$_validators = 'array'
Details
- visibility
- protected
- default
- array
- final
- false
- static
- false
Methods
__call
__call(
$method, $arguments
)
:
Arguments
- $method
- $arguments
Details
- visibility
- public
- final
- false
- static
- false
__construct
__construct(
$fieldName
=
null, $fieldLabel
=
null
)
:
Arguments
- $fieldName
- $fieldLabel
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
_getTrlProperties
_getTrlProperties(
)
:
Details
- visibility
- protected
- final
- false
- static
- false
_init
_init(
)
:
Override to add custom initialisation code
Details
- visibility
- protected
- final
- false
- static
- false
_processChildren
_processChildren(
$method, $childField, $row, $postData
)
:
Arguments
- $method
- $childField
- $row
- $postData
Details
- visibility
- protected
- final
- false
- static
- false
addValidator
addValidator(
\Zend_Validate_Interface $v, string $key
=
null
)
:
Arguments
- $v
- \Zend_Validate_Interface
Der validator - $key
- string
Um zB einen Validator zu finden und durch einen anderen zu ersetzen, zB bei {@link Kwf_Form_Field_Checkbox}
Details
- visibility
- public
- final
- false
- static
- false
afterSave
afterSave(
$row, $postData
)
:
Arguments
- $row
- $postData
Details
- visibility
- public
- final
- false
- static
- false
clearValidators
clearValidators(
)
:
Details
- visibility
- public
- final
- false
- static
- false
delete
delete(
$row
)
:
Arguments
- $row
Details
- visibility
- public
- final
- false
- static
- false
getByName
getByName(
$name
)
:
\Kwf_Form_Field_Abstract
returns a field by its name
Arguments
- $name
Output
Details
- visibility
- public
- final
- false
- static
- false
getChildren
getChildren(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getData
getData(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getFieldName
getFieldName(
)
:
string
returns the fully qualified field name, different to getName when using form in form
Output
- string
Details
- visibility
- public
- final
- false
- static
- false
getFrontendMetaData
getFrontendMetaData(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getMetaData
getMetaData(
$model
)
:
Arguments
- $model
Details
- visibility
- public
- final
- false
- static
- false
getName
getName(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getProperty
getProperty(
$name
)
:
Get any property supported by ExtJS for this field
Alternatively use getFooBar() to get property fooBar
Arguments
- $name
Details
- visibility
- public
- final
- false
- static
- false
getTemplateVars
getTemplateVars(
$values, $fieldNamePostfix, $idPrefix
)
:
Arguments
- $values
- $fieldNamePostfix
- $idPrefix
Details
- visibility
- public
- final
- false
- static
- false
getValidators
getValidators(
)
:
Details
- visibility
- public
- final
- false
- static
- false
hasChildren
hasChildren(
)
:
Details
- visibility
- public
- final
- false
- static
- false
initFields
initFields(
)
:
Details
- visibility
- public
- final
- false
- static
- false
load
load(
$row, $postData
=
array
)
:
Arguments
- $row
- $postData
Details
- visibility
- public
- final
- false
- static
- false
mask
mask(
$name
)
:
Arguments
- $name
Details
- visibility
- public
- final
- false
- static
- false
prepareSave
prepareSave(
$row, $postData
)
:
Arguments
- $row
- $postData
Details
- visibility
- public
- final
- false
- static
- false
processInput
processInput(
$row, $postData
)
:
Arguments
- $row
- $postData
Details
- visibility
- public
- final
- false
- static
- false
save
save(
$row, $postData
)
:
Arguments
- $row
- $postData
Details
- visibility
- public
- final
- false
- static
- false
setData
setData(
$data
)
:
Arguments
- $data
Details
- visibility
- public
- final
- false
- static
- false
setFieldLabel
setFieldLabel(
$value
)
:
Sets the field label
Arguments
- $value
Details
- visibility
- public
- final
- false
- static
- false
setLabelSeparator
setLabelSeparator(
$value
)
:
Sets the label separator
defaults to ':'
Arguments
- $value
Details
- visibility
- public
- final
- false
- static
- false
setName
setName(
$name
)
:
Sets the field name, should be the same as the model column
Arguments
- $name
Details
- visibility
- public
- final
- false
- static
- false
setProperties
setProperties(
$properties
)
:
Arguments
- $properties
Details
- visibility
- public
- final
- false
- static
- false
setProperty
setProperty(
$name, $value
)
:
Set any property supported by ExtJS for this field
Alternatively use setFooBar() to set property fooBar
Arguments
- $name
- $value
Details
- visibility
- public
- final
- false
- static
- false
toDebug
toDebug(
$indent
=
0
)
:
Arguments
- $indent
Details
- visibility
- public
- final
- false
- static
- false
- internal
trlStaticExecute
trlStaticExecute(
$language
=
null
)
:
Arguments
- $language
Details
- visibility
- public
- final
- false
- static
- false
validate
validate(
$row, $postData
)
:
Arguments
- $row
- $postData
Details
- visibility
- public
- final
- false
- static
- false