yii\db\conditions\BetweenCondition - Yii2 类参考手册
Class yii\db\conditions\BetweenCondition
全部
| 方法 Methods
Inheritance | yii\db\conditions\BetweenCondition |
---|---|
Implements | yii\db\conditions\ConditionInterface |
Available since version | 2.0.14 |
Class BetweenCondition represents a BETWEEN
condition.
Public Methods
隐藏继承的方法 Hide inherited methods
方法 Method | 简介 Description | 定义在 Defined By |
---|---|---|
__construct() | Creates a condition with the BETWEEN operator. |
yii\db\conditions\BetweenCondition |
fromArrayDefinition() | Creates object by array-definition as described in Query Builder – Operator format guide article. | yii\db\conditions\BetweenCondition |
getColumn() | yii\db\conditions\BetweenCondition | |
getIntervalEnd() | yii\db\conditions\BetweenCondition | |
getIntervalStart() | yii\db\conditions\BetweenCondition | |
getOperator() | yii\db\conditions\BetweenCondition |
方法详情 Method Details
Creates a condition with the BETWEEN
operator.
public void __construct ( $column, $operator, $intervalStart, $intervalEnd ) | ||
$column | mixed | The literal to the left of $operator |
$operator | string | The operator to use (e.g. |
$intervalStart | mixed | Beginning of the interval |
$intervalEnd | mixed | End of the interval |
Creates object by array-definition as described in Query Builder – Operator format guide article.
public static $this fromArrayDefinition ( $operator, $operands ) | ||
$operator | string | Operator in uppercase. |
$operands | array | Array of corresponding operands |
throws | yii\base\InvalidArgumentException | if wrong number of operands have been given. |
---|
public mixed getColumn ( ) |
public mixed getIntervalEnd ( ) |
public mixed getIntervalStart ( ) |
public string getOperator ( ) |