sphinx\QueryBuilder buildCondition()

buildCondition() public method

Parses the condition specification and generates the corresponding SQL expression.

public string buildCondition ( $indexes, $condition, &$params )
$indexes yii\sphinx\IndexSchema[]

List of indexes, which affected by query

$condition string|array

The condition specification. Please refer to yii\sphinx\Query::where() on how to specify a condition.

$params array

The binding parameters to be populated

return string

The generated SQL expression

throws yii\db\Exception

if the condition is in bad format

doc_Yii
2016-10-30 17:12:27
Comments
Leave a Comment

Please login to continue.