ModifyDefaultConstraintsForDatabaseQueryEvent

FinalYes

Event which is fired when compiling the list of constraints such as "deleted" and "starttime", "endtime" etc.

This Event allows for additional enableColumns to be added or removed to the list of constraints.

An example: The extension ingmar_accessctrl enables assigning more than one usergroup to content and page records

Table of Contents

Methods

__construct()  : mixed
getConstraints()  : array<string|int, mixed>
getContext()  : Context
getEnableFieldsToIgnore()  : array<string|int, mixed>
getExpressionBuilder()  : ExpressionBuilder
getTable()  : string
getTableAlias()  : string
setConstraints()  : void

Methods

__construct()

public __construct(string $table, string $tableAlias, ExpressionBuilder $expressionBuilder, array<string|int, mixed> $constraints, array<string|int, mixed> $enableFieldsToIgnore, Context $context) : mixed
Parameters
$table : string
$tableAlias : string
$expressionBuilder : ExpressionBuilder
$constraints : array<string|int, mixed>
$enableFieldsToIgnore : array<string|int, mixed>
$context : Context

getConstraints()

public getConstraints() : array<string|int, mixed>
Return values
array<string|int, mixed>

getEnableFieldsToIgnore()

public getEnableFieldsToIgnore() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTable()

public getTable() : string
Return values
string

getTableAlias()

public getTableAlias() : string
Return values
string

setConstraints()

public setConstraints(array<string|int, mixed> $constraints) : void
Parameters
$constraints : array<string|int, mixed>

        
On this page

Search results