LikeConditionBuilder
API reference › yii › db › oci › conditions › LikeConditionBuilder
Class LikeConditionBuilder builds objects of LikeCondition
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$escapeCharacter protected | string| | Default: '!'. | LikeConditionBuilder |
$escapingReplacements protected | \ is initialized in buildLikeCondition() method since we need to choose replacement value based on Schema::quoteValue(). Default: ['%' => '!%',. | LikeConditionBuilder | |
$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. | LikeConditionBuilder |
parseOperator() protected | yii\ |
Property details
Section titled “Property details”$escapeCharacter
Section titled “$escapeCharacter ”protected string|null $escapeCharacter = '!'By default it’s assumed to be \.
$escapingReplacements
Section titled “$escapingReplacements ”protected $escapingReplacements = ['%' => '!%', '_' => '!_', '!' => '!!']\ is initialized in buildLikeCondition() method since
we need to choose replacement value based on Schema::quoteValue().
Method details
Section titled “Method details”build()
Section titled “build() ”public function build(yii\db\ExpressionInterface $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\ | The expression to be built. |
$params | array | The binding parameters. |
Returns
string: The raw SQL that will not be additionally escaped or quoted.