\FAA\Obj\SearchFilterCustom

Search filter object This is the is a custom filter.

Summary

Methods
Properties
Constants
__construct()
ToSqlQuery()
ToQuery()
Matches()
FilterQuery()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(string  $value,boolean  $is_or = false)

FilterCustom constructor.

A lower filter with field and option to be equal

Parameters

string $value

The search value

boolean $is_or

Merge with other filters with or

ToSqlQuery()

ToSqlQuery(): \FAA\Obj\Search\SqlTerm|null

Convert to sql search term

Returns

\FAA\Obj\Search\SqlTerm|null

ToQuery()

ToQuery(): string|null

Not supported

Returns

string|null

Matches()

Matches(array|object  $entity): boolean

Parameters

array|object $entity

Returns

boolean

FilterQuery()

FilterQuery(): string

Create query Convert to solr search query like length:[* TO 200]

Returns

string —

The search query