GeneralSearchCondition

Implements \GeneralSearchConditionInterface

Class GeneralSearchCondition

package

Default

Methods

SearchConditionInterface constructor.

__construct(array $conditions, \SearchConditionStrategyControlInterface $searchConditionStrategyControl) 

Arguments

$conditions

array

$searchConditionStrategyControl

\SearchConditionStrategyControlInterface

Return the allowed columns as an array.

allowedColumns() : array
static

Response

array

Return the allowed tables as an array.

allowedTables() : array
static

Response

array

Returns the respective sql where statement (without an beginning "WHERE").

buildSql() : string

Response

string

Return a new object of this class by a given parameterized conditions array.

createByArray(array $array, null|\SearchConditionStrategyControlInterface $searchConditionStrategyControl = null) : self
static

Arguments

$array

array

$searchConditionStrategyControl

null|\SearchConditionStrategyControlInterface

Response

self

Return a new object of this class by a given parameterized conditions json.

createByJson(\NonEmptyStringType $json, null|\SearchConditionStrategyControlInterface $searchConditionStrategyControl = null) : self
static

Arguments

$searchConditionStrategyControl

null|\SearchConditionStrategyControlInterface

Response

self

isAssocArray

isAssocArray(array $array) : boolean

Arguments

$array

array

Response

boolean

Properties

conditions

conditions : array
var

Type(s)

array

strategyControl

strategyControl : \SearchConditionStrategyControlInterface