AutocompleteFilter
        
        extends BaseFilter
    
    
            
            in package
            
        
    
    
    
        
            Description of AutocompleteFilter
Tags
Table of Contents
- $autosubmit : bool
 - Submit form on every filter change.
 - $field : string
 - Field name.
 - $fieldcode : string
 - $fieldtitle : string
 - $key : string
 - Filter key.
 - $label : string
 - Label to show on this filter.
 - $ordernum : int
 - $readonly : bool
 - $table : string
 - $where : array<string|int, mixed>
 - $i18n : Translator
 - Translator object.
 - $value : mixed
 - $totalnum : int
 - __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 need asset to the asset manager.
 - getDescription() : string
 - onChange() : string
 - readonly() : string
 
Properties
$autosubmit
Submit form on every filter change.
    public
        bool
    $autosubmit
    
    
    
    
$field
Field name.
    public
        string
    $field
    
    
    
    
$fieldcode
    public
        string
    $fieldcode
    
    
    
    
$fieldtitle
    public
        string
    $fieldtitle
    
    
    
    
$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
    
    
    
$table
    public
        string
    $table
    
    
    
    
$where
    public
        array<string|int, mixed>
    $where
    
    
    
    
$i18n
Translator object.
    protected
    static    Translator
    $i18n
    
    
    
    
$value
    protected
        mixed
    $value
    
    
    
    
$totalnum
    private
    static    int
    $totalnum
     = 0
    
    
    
Methods
__construct()
    public
                    __construct(string $key, string $field, string $label, string $table[, string $fieldcode = '' ][, string $fieldtitle = '' ][, array<string|int, mixed> $where = [] ]) : mixed
    
        Parameters
- $key : string
 - $field : string
 - $label : string
 - $table : string
 - $fieldcode : string = ''
 - $fieldtitle : string = ''
 - $where : array<string|int, mixed> = []
 
Return values
mixed —getDataBaseWhere()
    public
                    getDataBaseWhere(array<string|int, mixed> &$where) : bool
    
        Parameters
- $where : array<string|int, mixed>
 
Return values
bool —getValue()
Get the filter value
    public
                    getValue() : mixed
    
    
    
        Return values
mixed —name()
    public
                    name() : string
    
    
    
        Return values
string —render()
    public
                    render() : string
    
    
    
        Return values
string —setValue()
Set value to filter
    public
                    setValue(mixed $value) : mixed
    
        Parameters
- $value : mixed
 
Return values
mixed —setValueFromRequest()
Set value to filter from form request
    public
                    setValueFromRequest(Request &$request) : mixed
    
        Parameters
- $request : Request
 
Return values
mixed —assets()
Adds need asset to the asset manager.
    protected
                    assets() : mixed
    
    
    
        Return values
mixed —getDescription()
    protected
                    getDescription() : string
    
    
    
        Return values
string —onChange()
    protected
                    onChange() : string
    
    
    
        Return values
string —readonly()
    protected
                    readonly() : string