Class yii\db\conditions\InConditionBuilder

继承yii\db\conditions\InConditionBuilder
实现yii\db\ExpressionBuilderInterface
Uses Traitsyii\db\ExpressionBuilderTrait
子类yii\db\mssql\conditions\InConditionBuilder, yii\db\oci\conditions\InConditionBuilder, yii\db\sqlite\conditions\InConditionBuilder
可用自版本2.0.14
源代码 https://github.com/yiisoft/yii2/blob/master/framework/db/conditions/InConditionBuilder.php

Class InConditionBuilder builds objects of yii\db\conditions\InCondition

公共方法

隐藏继承的方法

方法描述定义在
__construct() ExpressionBuilderTrait 构造函数. yii\db\ExpressionBuilderTrait
build() Method builds the raw SQL from the $expression that will not be additionally escaped or quoted. yii\db\conditions\InConditionBuilder

方法详情

build() public 方法

Method builds the raw SQL from the $expression that will not be additionally escaped or quoted.

public string build ( yii\db\ExpressionInterface $expression, array &$params = [] )
$expression yii\db\ExpressionInterface|yii\db\conditions\InCondition

The expression to be built.

$params array

The binding parameters.

return string

The raw SQL that will not be additionally escaped or quoted.

buildCompositeInCondition() protected 方法

Builds SQL for IN condition.

protected string buildCompositeInCondition ( $operator, $columns, $values, &$params )
$operator string
$columns array|Traversable
$values array
$params array
return string

SQL

buildSubqueryInCondition() protected 方法

Builds SQL for IN condition.

protected string buildSubqueryInCondition ( $operator, $columns, $values, &$params )
$operator string
$columns array|string
$values yii\db\Query
$params array
return string

SQL

buildValues() protected 方法

Builds $values to be used in yii\db\conditions\InCondition

protected array buildValues ( yii\db\conditions\ConditionInterface $condition, $values, &$params )
$condition yii\db\conditions\ConditionInterface|yii\db\conditions\InCondition
$values array
$params array

The binding parameters

return array

Of prepared for SQL placeholders

getNullCondition() protected 方法 (可用自版本: 2.0.31)

Builds is null/is not null condition for column based on operator

protected string getNullCondition ( $operator, $column )
$operator string
$column string
return string

Is null or is not null condition

getRawValuesFromTraversableObject() protected 方法 (可用自版本: 2.0.31)

protected array getRawValuesFromTraversableObject ( Traversable $traversableObject )
$traversableObject Traversable
return array

Raw values