BetweenConditionBuilder
API reference › yii › db › conditions › BetweenConditionBuilder
Class BetweenConditionBuilder builds objects of BetweenCondition
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$queryBuilder protected | yii\ | Default: null. | yii\ |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | ExpressionBuilderTrait constructor. | yii\ |
build() | Method builds the raw SQL from the $expression that will not be additionally escaped or quoted. | BetweenConditionBuilder |
createPlaceholder() protected | Attaches $value to $params array and returns placeholder. | BetweenConditionBuilder |
Method details
Section titled “Method details”build()
Section titled “build() ”public function build(yii\db\ExpressionInterface|yii\db\conditions\BetweenCondition $expression, array &$params = []): stringMethod builds the raw SQL from the $expression that will not be additionally escaped or quoted.
Parameters
| Parameter | Type | Description |
|---|---|---|
$expression | yii\|BetweenCondition | The expression to be built. |
$params | array | The binding parameters. |
Returns
string: The raw SQL that will not be additionally escaped or quoted.
createPlaceholder()
Section titled “createPlaceholder() ”protected function createPlaceholder(mixed $value, array &$params): stringAttaches $value to $params array and returns placeholder.
Parameters
| Parameter | Type | Description |
|---|---|---|
$value | mixed | |
$params | array | Passed by reference |
Returns
string