ModifyConstraintsForLiveSearchEvent

FinalYes

PSR-14 event to modify the query builder instance for the live search

Table of Contents

Methods

__construct()  : mixed
addConstraint()  : void
addConstraints()  : void
Note that we only add a single/multiple constraints and do not allow to remove or override existing ones. This is a safeguard to not overwrite security-related query constraints.
getConstraints()  : array<int, string|CompositeExpression>
getSearchDemand()  : SearchDemand
getTableName()  : string

Methods

addConstraints()

Note that we only add a single/multiple constraints and do not allow to remove or override existing ones. This is a safeguard to not overwrite security-related query constraints.

public addConstraints(string|CompositeExpression ...$constraints) : void
Parameters
$constraints : string|CompositeExpression

getTableName()

public getTableName() : string
Return values
string

        
On this page

Search results