class UniqueCondition (View source)

Methods

__construct(array $fieldsMeta, array $row, bool $forceUnique = false, string|bool $restrictToTable = false, array $expressions = [])

Function to generate unique condition for specified row.

string
getWhereClause()

No description

bool
isClauseUnique()

No description

array
getConditionArray()

No description

Details

__construct(array $fieldsMeta, array $row, bool $forceUnique = false, string|bool $restrictToTable = false, array $expressions = [])

Function to generate unique condition for specified row.

Parameters

array $fieldsMeta

meta information about fields

array $row

current row

bool $forceUnique

generate condition only on pk or unique

string|bool $restrictToTable

restrict the unique condition to this table or false if none

array $expressions

An array of Expression instances.

string getWhereClause()

No description

Return Value

string

bool isClauseUnique()

No description

Return Value

bool

array getConditionArray()

No description

Return Value

array