SpecialOfferSearchCondition
extends GeneralSearchCondition
in package
Class GeneralSearchCondition
Table of Contents
- $conditions : array<string|int, mixed>
- $strategyControl : SearchConditionStrategyControlInterface
- __construct() : mixed
- SearchConditionInterface constructor.
- buildSql() : string
- Returns the respective sql where statement (without an beginning "WHERE").
- createByArray() : self
- Return a new object of this class by a given parameterized conditions array.
- createByJson() : self
- Return a new object of this class by a given parameterized conditions json.
- isAssocArray() : bool
- allowedColumns() : array<string|int, mixed>
- Return the allowed columns as an array.
- allowedTables() : array<string|int, mixed>
- Return the allowed tables as an array.
Properties
$conditions
protected
array<string|int, mixed>
$conditions
$strategyControl
protected
SearchConditionStrategyControlInterface
$strategyControl
Methods
__construct()
SearchConditionInterface constructor.
public
__construct(array<string|int, mixed> $conditions, SearchConditionStrategyControlInterface $searchConditionStrategyControl) : mixed
Parameters
- $conditions : array<string|int, mixed>
- $searchConditionStrategyControl : SearchConditionStrategyControlInterface
Return values
mixed —buildSql()
Returns the respective sql where statement (without an beginning "WHERE").
public
buildSql() : string
Return values
string —createByArray()
Return a new object of this class by a given parameterized conditions array.
public
static createByArray(array<string|int, mixed> $array[, null|SearchConditionStrategyControlInterface $searchConditionStrategyControl = null ]) : self
Parameters
- $array : array<string|int, mixed>
- $searchConditionStrategyControl : null|SearchConditionStrategyControlInterface = null
Return values
self —createByJson()
Return a new object of this class by a given parameterized conditions json.
public
static createByJson(NonEmptyStringType $json[, null|SearchConditionStrategyControlInterface $searchConditionStrategyControl = null ]) : self
Parameters
- $json : NonEmptyStringType
- $searchConditionStrategyControl : null|SearchConditionStrategyControlInterface = null
Return values
self —isAssocArray()
public
isAssocArray(array<string|int, mixed> $array) : bool
Parameters
- $array : array<string|int, mixed>
Return values
bool —allowedColumns()
Return the allowed columns as an array.
protected
static allowedColumns() : array<string|int, mixed>
Return values
array<string|int, mixed> —allowedTables()
Return the allowed tables as an array.
protected
static allowedTables() : array<string|int, mixed>