Documentation

Filter
in package
implements ComponentInterface

Table of Contents

Interfaces

ComponentInterface

Properties

$filter  : string
$filterID  : int
$params  : array<string|int, mixed>

Methods

__construct()  : mixed
__toString()  : string
create()  : Filter
empty()  : bool
params()  : array<string|int, mixed>
buildFilterWithParams()  : array<string|int, mixed>
createFilterWithParams()  : array<string|int, mixed>
filterGroupToFilterString()  : string
parse()  : void
parseQueryFilters()  : array<string|int, mixed>

Properties

$filter read-only

private string $filter

$filterID

private int $filterID = 0

$params read-only

private array<string|int, mixed> $params

Methods

__construct()

public __construct(array<string|int, mixed> $queryFilters) : mixed
Parameters
$queryFilters : array<string|int, mixed>

__toString()

public __toString() : string
Return values
string

create()

public static create(array<string|int, mixed> $queryFilters) : Filter
Parameters
$queryFilters : array<string|int, mixed>
Return values
Filter

empty()

public empty() : bool
Return values
bool

params()

public params() : array<string|int, mixed>
Return values
array<string|int, mixed>

buildFilterWithParams()

private buildFilterWithParams(string $field, Operator $operator, mixed $value) : array<string|int, mixed>
Parameters
$field : string
$operator : Operator
$value : mixed
Return values
array<string|int, mixed>

createFilterWithParams()

private createFilterWithParams(Column $column, Operator $operator, mixed $value) : array<string|int, mixed>
Parameters
$column : Column
$operator : Operator
$value : mixed
Return values
array<string|int, mixed>

filterGroupToFilterString()

private filterGroupToFilterString(array<string|int, mixed> $filterGroup) : string
Parameters
$filterGroup : array<string|int, mixed>
Return values
string

parse()

private parse(array<string|int, mixed> $queryFilters) : void
Parameters
$queryFilters : array<string|int, mixed>

parseQueryFilters()

private parseQueryFilters(array<string|int, mixed> $queryFilters) : array<string|int, mixed>
Parameters
$queryFilters : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results