BackendWorkspaceRestriction implements QueryRestrictionInterface

Restriction to make queries in TYPO3 backend context versioning/ workspace aware

Table of Contents

Interfaces

QueryRestrictionInterface
The main restriction interface. All restrictions (including the collections) must implement this.

Properties

$includeRowsForWorkspaceOverlay  : bool
$workspaceId  : int

Methods

__construct()  : mixed
buildExpression()  : CompositeExpression
Main method to build expressions for given tables

Properties

$includeRowsForWorkspaceOverlay

protected bool $includeRowsForWorkspaceOverlay

Methods

__construct()

public __construct([int|null $workspaceId = null ][, bool $includeRowsForWorkspaceOverlay = true ]) : mixed
Parameters
$workspaceId : int|null = null
$includeRowsForWorkspaceOverlay : bool = true

buildExpression()

Main method to build expressions for given tables

public buildExpression(array<string|int, mixed> $queriedTables, ExpressionBuilder $expressionBuilder) : CompositeExpression
Parameters
$queriedTables : array<string|int, mixed>

Array of tables, where array key is table alias and value is a table name

$expressionBuilder : ExpressionBuilder

Expression builder instance to add restrictions with

Return values
CompositeExpression

The result of query builder expression(s)


        
On this page

Search results