SearchConditionStrategyControl
in package
implements
SearchConditionStrategyControlInterface
Uses
SearchConditionStrategyTrait
Class SearchConditionStrategyControl
Interfaces, Classes and Traits
- SearchConditionStrategyControlInterface
- Interface SearchConditionStrategyControlInterface
Table of Contents
- $settings : SearchConditionSettingsInterface
- __construct() : mixed
- SearchConditionStrategy constructor.
- buildSql() : string
- Parses the given params and delegates to several strategies to build a sql statement, which will be returned.
- create() : self
- Return a new object of this class.
- settings() : SearchConditionSettingsInterface
- Returns the internal settings object.
- getAttribute() : string
- Determines the sql attribute and returns it.
- getValue() : string
- Determines the sql value and returns it.
Properties
$settings
protected
SearchConditionSettingsInterface
$settings
Methods
__construct()
SearchConditionStrategy constructor.
public
__construct(SearchConditionSettingsInterface $settings) : mixed
Parameters
- $settings : SearchConditionSettingsInterface
Return values
mixed —buildSql()
Parses the given params and delegates to several strategies to build a sql statement, which will be returned.
public
buildSql(array<string|int, mixed> $params) : string
Parameters
- $params : array<string|int, mixed>
Tags
Return values
string —create()
Return a new object of this class.
public
static create([SearchConditionSettingsInterface $settings = null ]) : self
Parameters
- $settings : SearchConditionSettingsInterface = null
Return values
self —settings()
Returns the internal settings object.
public
settings() : SearchConditionSettingsInterface
Return values
SearchConditionSettingsInterface —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
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>