0 关注者

Trait yii\db\ExpressionBuilderTrait

实现类yii\db\ExpressionBuilder, yii\db\QueryExpressionBuilder, yii\db\conditions\BetweenColumnsConditionBuilder, yii\db\conditions\BetweenConditionBuilder, yii\db\conditions\ConjunctionConditionBuilder, yii\db\conditions\ExistsConditionBuilder, yii\db\conditions\HashConditionBuilder, yii\db\conditions\InConditionBuilder, yii\db\conditions\LikeConditionBuilder, yii\db\conditions\NotConditionBuilder, yii\db\conditions\SimpleConditionBuilder, yii\db\cubrid\conditions\LikeConditionBuilder, yii\db\mssql\conditions\InConditionBuilder, yii\db\mssql\conditions\LikeConditionBuilder, yii\db\mysql\JsonExpressionBuilder, yii\db\oci\conditions\InConditionBuilder, yii\db\oci\conditions\LikeConditionBuilder, yii\db\pgsql\ArrayExpressionBuilder, yii\db\pgsql\JsonExpressionBuilder, yii\db\sqlite\conditions\InConditionBuilder, yii\db\sqlite\conditions\LikeConditionBuilder
自版本起可用2.0.14
源代码 https://github.com/yiisoft/yii2/blob/master/framework/db/ExpressionBuilderTrait.php

Trait ExpressionBuilderTrait 为应实现 yii\db\ExpressionBuilderInterface 的类提供通用构造函数

受保护的属性

隐藏继承的属性

属性 类型 描述 定义类

公开方法

隐藏继承的方法

方法 描述 定义类
__construct() ExpressionBuilderTrait 构造函数。 yii\db\ExpressionBuilderTrait

属性详情

隐藏继承的属性

$queryBuilder 受保护的属性

方法详情

隐藏继承的方法

__construct() 公共方法

ExpressionBuilderTrait 构造函数。

public void __construct ( yii\db\QueryBuilder $queryBuilder )
$queryBuilder yii\db\QueryBuilder

                public function __construct(QueryBuilder $queryBuilder)
{
    $this->queryBuilder = $queryBuilder;
}