Form/Field/FilterField.php
- Classes
- Kwf_Form_Field_FilterField
\Kwf_Form_Field_FilterField
- Extends from
- \Kwf_Form_Field_Abstract
- package
- Form
- Methods
- __construct
- getChildren
- getFilterColumn
- getFilterField
- getFilteredField
- getMetaData
- hasChildren
- load
- setFilterColumn
- setFilterField
- setFilteredField
- setNamePrefix
Description
Filters a field using another field. Can be used with two Select fields.
TODO: support for non-remote stores
Methods
__construct
__construct(
)
:
Zeigt mehrere Checkboxes an und speichert diese in einer Relationstabelle
Details
- visibility
- public
- final
- false
- static
- false
getChildren
getChildren(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getFilterColumn
getFilterColumn(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getFilterField
getFilterField(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getFilteredField
getFilteredField(
)
:
Details
- visibility
- public
- final
- false
- static
- false
getMetaData
getMetaData(
$model
)
:
Arguments
- $model
Details
- visibility
- public
- final
- false
- static
- false
hasChildren
hasChildren(
)
:
Details
- visibility
- public
- final
- false
- static
- false
load
load(
$row, $postData
=
array
)
:
Arguments
- $row
- $postData
Details
- visibility
- public
- final
- false
- static
- false
setFilterColumn
setFilterColumn(
$v
)
:
Sets the name of the used parameter for the filtered query
defaults to 'filter'
Arguments
- $v
- string
Details
- visibility
- public
- final
- false
- static
- false
setFilterField
setFilterField(
$field
)
:
Sets the filter field (the one that filters the filtered field)
Arguments
- $field
Details
- visibility
- public
- final
- false
- static
- false
setFilteredField
setFilteredField(
$field
)
:
Sets the filtered field (the one that's filtered by filter field)
Arguments
- $field
Details
- visibility
- public
- final
- false
- static
- false
setNamePrefix
setNamePrefix(
$name
)
:
Sets the name prefix for the filter/filtered fields
Arguments
- $name
Details
- visibility
- public
- final
- false
- static
- false