FileAccess Orion

FilterEmpty extends SearchFilter
in package

Search filter object

This is the is empty filter.

Tags
category

Interface function

author

Tobias Teichner webmaster@teichner.biz

since

File available since v5.81.0

Table of Contents

$empty  : bool
Allow empty
$field  : mixed
$is_or  : bool
Is or filter
$value  : mixed
__construct()  : mixed
FilterEmpty constructor.
Field()  : mixed
Get the filed
IsOr()  : bool
Is or connection?
ToQuery()  : string
To query Convert the search filter instance to search query string
ToSqlQuery()  : SqlTerm|array<string|int, SqlTerm>|null
Create a sql query based on this filter

Properties

Methods

__construct()

FilterEmpty constructor.

public __construct(string $field[, bool $is_or = false ]) : mixed
Parameters
$field : string

The field to search for

$is_or : bool = false

Is an or connect

Return values
mixed

Field()

Get the filed

public Field() : mixed
Return values
mixed

IsOr()

Is or connection?

public IsOr() : bool

When merged with other filter use OR instead of AND

Return values
bool

Is or merge

ToQuery()

To query Convert the search filter instance to search query string

public ToQuery() : string
Return values
string

Search results