trait HasQuickSearch

Trait HasQuickSearch.

Properties

static string $searchKey
$search
Collection $columns
Tools $tools

Methods

quickSearch($search = null)

No description

mixed|void
applyQuickSearch()

Apply the search query to the query.

addWhereBindings(string $query)

Add where bindings.

array
parseQueryBindings(array $queries)

Parse quick query bindings.

addWhereLikeBinding(string $column, bool $or, string $pattern)

Add where like binding to model query.

addWhereDatetimeBinding(string $column, bool $or, string $function, string $value)

Add where date time function binding to model query.

addWhereInBinding(string $column, bool $or, bool $not, string $values)

Add where in binding to the model query.

addWhereBetweenBinding(string $column, bool $or, string $start, string $end)

Add where between binding to the model query.

addWhereBasicBinding(string $column, bool $or, string $operator, string $value)

Add where basic binding to the model query.

Details

at line 35
QuickSearch quickSearch($search = null)

No description

Parameters

$search

Return Value

QuickSearch

at line 54
protected mixed|void applyQuickSearch()

Apply the search query to the query.

Return Value

mixed|void

at line 83
protected addWhereBindings(string $query)

Add where bindings.

Parameters

string $query

at line 127
protected array parseQueryBindings(array $queries)

Parse quick query bindings.

Parameters

array $queries

Return Value

array

at line 165
protected addWhereLikeBinding(string $column, bool $or, string $pattern)

Add where like binding to model query.

Parameters

string $column
bool $or
string $pattern

at line 183
protected addWhereDatetimeBinding(string $column, bool $or, string $function, string $value)

Add where date time function binding to model query.

Parameters

string $column
bool $or
string $function
string $value

at line 198
protected addWhereInBinding(string $column, bool $or, bool $not, string $values)

Add where in binding to the model query.

Parameters

string $column
bool $or
bool $not
string $values

at line 223
protected addWhereBetweenBinding(string $column, bool $or, string $start, string $end)

Add where between binding to the model query.

Parameters

string $column
bool $or
string $start
string $end

at line 238
protected addWhereBasicBinding(string $column, bool $or, string $operator, string $value)

Add where basic binding to the model query.

Parameters

string $column
bool $or
string $operator
string $value