Class yii\db\conditions\BetweenCondition

继承yii\db\conditions\BetweenCondition
实现yii\db\conditions\ConditionInterface
可用自版本2.0.14
源代码 https://github.com/yiisoft/yii2/blob/master/framework/db/conditions/BetweenCondition.php

Class BetweenCondition represents a BETWEEN condition.

方法详情

__construct() public 方法

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. BETWEEN or NOT BETWEEN)

$intervalStart mixed

Beginning of the interval

$intervalEnd mixed

End of the interval

fromArrayDefinition() public static 方法

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.

getColumn() public 方法

public mixed getColumn ( )
getIntervalEnd() public 方法

public mixed getIntervalEnd ( )
getIntervalStart() public 方法

public mixed getIntervalStart ( )
getOperator() public 方法

public string getOperator ( )