ModifyDefaultConstraintsForDatabaseQueryEvent

final class \TYPO3\CMS\Core\Domain\Event\ModifyDefaultConstraintsForDatabaseQueryEvent

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, CompositeExpression|string>
getContext()  : Context
getEnableFieldsToIgnore()  : array
getExpressionBuilder()  : ExpressionBuilder
getTable()  : string
getTableAlias()  : string
setConstraints()  : void

Methods

__construct()

public __construct(string $table, string $tableAlias, ExpressionBuilder $expressionBuilder, array $constraints, array $enableFieldsToIgnore, Context $context) : mixed

Parameters

$table : string
$tableAlias : string
$expressionBuilder : ExpressionBuilder
$constraints : array
$enableFieldsToIgnore : array
$context : Context

getEnableFieldsToIgnore()

public getEnableFieldsToIgnore() : array

Return values

array

getTable()

public getTable() : string

Return values

string

getTableAlias()

public getTableAlias() : string

Return values

string

setConstraints()

public setConstraints(array $constraints) : void

Parameters

$constraints : array
On this page