SelectWhereFilter
extends SelectWhereFilter
in package
Class created by Core/Internal/PluginsDeploy
Table of Contents
Properties
- $autosubmit : bool
- Submit form on every filter change.
- $field : string
- Field name.
- $icon : string
- $key : string
- Filter key.
- $label : string
- Label to show on this filter.
- $ordernum : int
- $readonly : bool
- $values : array<string|int, mixed>
- $i18n : Translator
- Translator object.
- $value : mixed
Methods
- __construct() : mixed
- getDataBaseWhere() : bool
- getValue() : mixed
- Get the filter value
- name() : string
- render() : string
- setValue() : mixed
- Set value to filter
- setValueFromRequest() : mixed
- Set value to filter from form request
- assets() : mixed
- Adds assets to the asset manager.
- getHtmlOptions() : string
- onChange() : string
- readonly() : string
Properties
$autosubmit
Submit form on every filter change.
public
bool
$autosubmit
$field
Field name.
public
string
$field
$icon
public
string
$icon
= ''
$key
Filter key.
public
string
$key
$label
Label to show on this filter.
public
string
$label
$ordernum
public
int
$ordernum
$readonly
public
bool
$readonly
= false
$values
public
array<string|int, mixed>
$values
$i18n
Translator object.
protected
static Translator
$i18n
$value
protected
mixed
$value
Methods
__construct()
public
__construct(string $key[, array<string|int, mixed> $values = [] ][, string $label = '' ]) : mixed
Parameters
- $key : string
- $values : array<string|int, mixed> = []
- $label : string = ''
getDataBaseWhere()
public
getDataBaseWhere(array<string|int, mixed> &$where) : bool
Parameters
- $where : array<string|int, mixed>
Return values
boolgetValue()
Get the filter value
public
getValue() : mixed
name()
public
name() : string
Return values
stringrender()
public
render() : string
Return values
stringsetValue()
Set value to filter
public
setValue(mixed $value) : mixed
Parameters
- $value : mixed
setValueFromRequest()
Set value to filter from form request
public
setValueFromRequest(Request &$request) : mixed
Parameters
- $request : Request
assets()
Adds assets to the asset manager.
protected
assets() : mixed
getHtmlOptions()
protected
getHtmlOptions() : string
Return values
stringonChange()
protected
onChange() : string
Return values
stringreadonly()
protected
readonly() : string