buildBetweenCondition() public method
Creates an Mongo condition, which emulates the BETWEEN
operator.
public array buildBetweenCondition ( $operator, $operands ) | ||
---|---|---|
$operator | string |
The operator to use |
$operands | array |
The first operand is the column name. The second and third operands describe the interval that column value should be in. |
return | array |
The generated Mongo condition. |
throws | yii\base\InvalidParamException |
if wrong number of operands have been given. |
Please login to continue.