HumHub Documentation (unofficial)

ExpressionBuilder
in package
implements ExpressionBuilderInterface uses ExpressionBuilderTrait

Class ExpressionBuilder builds objects of [[yii\db\Expression]] class.

Tags
author

Dmitry Naumenko d.naumenko.a@gmail.com

since
2.0.14

Table of Contents

Interfaces

ExpressionBuilderInterface
Interface ExpressionBuilderInterface is designed to build raw SQL from specific expression objects that implement [[ExpressionInterface]].

Properties

$queryBuilder  : QueryBuilder

Methods

__construct()  : mixed
ExpressionBuilderTrait constructor.
build()  : string
Method builds the raw SQL from the $expression that will not be additionally escaped or quoted.

Properties

Methods

build()

Method builds the raw SQL from the $expression that will not be additionally escaped or quoted.

public build(Expression|ExpressionInterface $expression[, array<string|int, mixed> &$params = [] ]) : string
Parameters
$expression : Expression|ExpressionInterface

the expression to be built

$params : array<string|int, mixed> = []

the binding parameters.

Return values
string

the raw SQL that will not be additionally escaped or quoted.


        
On this page

Search results