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
__construct()
public
__construct(array<int, string|CompositeExpression> $constraints, string $table, SearchDemand $searchDemand) : mixed
Parameters
- $constraints : array<int, string|CompositeExpression>
- $table : string
- $searchDemand : SearchDemand
addConstraint()
public
addConstraint(string|CompositeExpression $constraint) : void
Parameters
- $constraint : string|CompositeExpression
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
getConstraints()
public
getConstraints() : array<int, string|CompositeExpression>
Return values
array<int, string|CompositeExpression>getSearchDemand()
public
getSearchDemand() : SearchDemand
Return values
SearchDemandgetTableName()
public
getTableName() : string