Class yii\db\conditions\InCondition
| 继承 | yii\db\conditions\InCondition |
|---|---|
| 实现 | yii\db\conditions\ConditionInterface |
| 可用版本自 | 2.0.14 |
| 源码 | https://github.com/yiichina/yii2/blob/api/framework/db/conditions/InCondition.php |
类 InCondition 表示 IN 条件。
公共方法
| 方法 | 描述 | 被定义在 |
|---|---|---|
| __construct() | SimpleCondition 构造函数 | yii\db\conditions\InCondition |
| fromArrayDefinition() | 按照 文档:查询构建器 - 操作符格式 文档中的描述, 以数组定义创建对象。 | yii\db\conditions\InCondition |
| getColumn() | yii\db\conditions\InCondition | |
| getOperator() | yii\db\conditions\InCondition | |
| getValues() | yii\db\conditions\InCondition |
方法详情
SimpleCondition 构造函数
| public void __construct($column, $operator, $values) | ||
| $column | ||
| $operator | string | 要使用操作符(例如: |
| $values | ||
按照 文档:查询构建器 - 操作符格式 文档中的描述, 以数组定义创建对象。
| public static $this fromArrayDefinition($operator, $operands) | ||
| $operator | string | 操作符大写。 |
| $operands | array | 相应操作数的数组。 |
| throws | yii\base\InvalidArgumentException | 如果已给出错误的操作数,则抛出 InvalidArgumentException 异常。 |
|---|---|---|
| public mixed getColumn() |
| public string getOperator() |
| public yii\db\ExpressionInterface[]|string[]|integer[] getValues() |