SearchConditionStrategyControl

Implements \SearchConditionStrategyControlInterface

Class SearchConditionStrategyControl

package

Default

Methods

SearchConditionStrategy constructor.

__construct(\SearchConditionSettingsInterface $settings) 

Arguments

Parses the given params and delegates to several strategies to build a sql statement, which will be returned.

buildSql(array $params) : string
Throws
\InvalidSearchConditionException

If operation is unknown.

Arguments

$params

array

Response

string

Return a new object of this class.

create(\SearchConditionSettingsInterface $settings = null) : self
static

Arguments

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 internal settings object.

settings() : \SearchConditionSettingsInterface

Properties

settings

settings : \SearchConditionSettingsInterface