phpDocumentor

SearchConditionStrategyTrait

Trait SearchConditionStrategyTrait

Table of Contents

getAttribute()  : string
Determines the sql attribute and returns it.
getValue()  : string
Determines the sql value and returns it.

Methods

getAttribute()

Determines the sql attribute and returns it.

protected getAttribute(array<string|int, mixed> $params, array<string|int, mixed> $allowedColumns, array<string|int, mixed> $allowedTables) : string
Parameters
$params : array<string|int, mixed>
$allowedColumns : array<string|int, mixed>
$allowedTables : array<string|int, mixed>
Tags
throws
InvalidSearchConditionException

If given column or table is not allowed.

Return values
string

getValue()

Determines the sql value and returns it.

protected getValue(array<string|int, mixed> $params) : string

Notice: RangeStrategy and InStrategy have their own implementation.

Parameters
$params : array<string|int, mixed>
Return values
string

Search results