PHP Class TbExtendedFilter
This widget displays an extra row to the grid is attached to and renders a visual feedback of the filter values used
plus an option to save them for later use.
ファイルを表示
Open project: yinhe/yincart
Public Properties
Property |
Type |
Description |
|
$filteredBy |
|
the cleaned filter attributes |
|
$grid |
|
the grid view the widget is going to be used with |
|
$model |
|
the model that works as a filter to the grid |
|
$redirectRoute |
|
the route to redirect when saving/removing a filter |
|
$removeFilterVar |
|
the ajax variable that is used to check whether to delete a filter from the registry |
|
$saveFilterVar |
|
the ajax variable that is used to check whether a filter is to be saved |
|
Protected Properties
Property |
Type |
Description |
|
$jsonStorage |
|
Component |
|
$registry |
|
the name of the json registry to save the value |
|
Public Methods
Protected Methods
Method Details
checkRequestFilters()
protected method
Checkes whether there has been send the command to save a filter to the registry and redirects to
specified route
checkRequestRemovalFilter()
protected method
Checks whether there has been send the command to remove a filter from the registry and redirects to
specified route
displayExtendedFilterValues()
protected method
Displays the filtered options
displaySavedFilters()
protected method
displays the saved filters as a dropdown list
generateRegistryItemKey()
protected method
Generates a registry item key with the filtered attributes + the grid id
registerClientScript()
public method
Property Details
$filteredBy public_oe property
the cleaned filter attributes
the grid view the widget is going to be used with
$jsonStorage protected_oe property
$model public_oe property
the model that works as a filter to the grid
$redirectRoute public_oe property
the route to redirect when saving/removing a filter
$registry protected_oe property
the name of the json registry to save the value
$removeFilterVar public_oe property
the ajax variable that is used to check whether to delete a filter from the registry
$saveFilterVar public_oe property
the ajax variable that is used to check whether a filter is to be saved