\FAA\Obj\SearchFilterIn

Search filter in array object

This is the equality filter.

Summary

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

Properties

$values

$values :scalar|array

the list of allowed values

Type

scalar|array

Methods

__construct()

__construct(string  $field,string|array  $list,boolean  $is_or = false)

Filter in constructor.

Create a filter with multiple allowed options to search for, is an or connection

Parameters

string $field

The search field

string|array $list

A list of possible selects.

boolean $is_or

Merge with other filters with or

Matches()

Matches(array|object  $entity): boolean

Parameters

array|object $entity

Returns

boolean

ToSqlQuery()

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

Convert to sql search term

Returns

\FAA\Obj\Search\SqlTerm|null

ToQuery()

ToQuery(): string

Create query Convert to solr search query like name:(x OR y OR.

..)

Returns

string —

The search query