SearchConditionSettings

Implements \SearchConditionSettingsInterface

Class SearchConditionSettings

package

Default

Methods

SearchConditionSettings constructor.

__construct(array $strategies, array $allowedColumns, array $allowedTables) 

Arguments

$strategies

array

$allowedColumns

array

$allowedTables

array

Returns the allowed columns as an array.

allowedColumns() : array

Response

array

Returns the tables as an array.

allowedTables() : array

Response

array

Return a new object of this class.

create(array|null $allowedColumns = null, array|null $allowedTables = null, array|null $strategies = null) : self
static

Arguments

$allowedColumns

array|null

$allowedTables

array|null

$strategies

array|null

Response

self

Determines the sql attribute and returns it.

getAttribute(array $params, array $allowedColumns, array $allowedTables) : string
inherited
Throws
\InvalidSearchConditionException

If given column or table is not allowed.

Arguments

$params

array

$allowedColumns

array

$allowedTables

array

Response

string

Determines the sql value and returns it.

getValue(array $params) : string
inherited

Notice: RangeStrategy and InStrategy have their own implementation.

Arguments

$params

array

Response

string

Returns the strategies as an array.

strategies() : array

Response

array

Properties

strategies

strategies : array
var

Type(s)

array

allowedColumns

allowedColumns : array
var

Type(s)

array

allowedTables

allowedTables : array
var

Type(s)

array