EmptyRestrictionContainer

class \TYPO3\CMS\Core\Database\Query\Restriction\EmptyRestrictionContainer

Extends
AbstractRestrictionContainer

Base class for query restriction collections

Table of Contents

Properties

$enforcedRestrictions  : QueryRestrictionInterface[]
$restrictions  : QueryRestrictionInterface[]

Methods

add()  : QueryRestrictionContainerInterface
Add a new restriction instance to this collection
buildExpression()  : CompositeExpression
Main method to build expressions for given tables.
removeAll()  : QueryRestrictionContainerInterface
Removes all restrictions stored within this container
removeByType()  : QueryRestrictionContainerInterface
Remove restriction of a given type
createRestriction()  : QueryRestrictionInterface
Factory method for restrictions.

Properties

Methods

buildExpression()

Main method to build expressions for given tables.

public buildExpression(array $queriedTables, ExpressionBuilder $expressionBuilder) : CompositeExpression

Iterating over all registered expressions and combine them with AND

Parameters

$queriedTables : array

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