‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Database\Query\Restriction\RootLevelRestriction Class Reference
Inheritance diagram for TYPO3\CMS\Core\Database\Query\Restriction\RootLevelRestriction:
TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionInterface

Public Member Functions

 __construct (array $tableNames=[])
 
CompositeExpression buildExpression (array $queriedTables, ExpressionBuilder $expressionBuilder)
 

Protected Attributes

array $tableNames
 

Detailed Description

Restriction to filter records which are not stored on the root page.

Definition at line 26 of file RootLevelRestriction.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Database\Query\Restriction\RootLevelRestriction::__construct ( array  $tableNames = [])

Member Function Documentation

◆ buildExpression()

CompositeExpression TYPO3\CMS\Core\Database\Query\Restriction\RootLevelRestriction::buildExpression ( array  $queriedTables,
ExpressionBuilder  $expressionBuilder 
)

Main method to build expressions for given tables

Parameters
array$queriedTables‪Array of tables, where array key is table alias and value is a table name
ExpressionBuilder$expressionBuilderExpression builder instance to add restrictions with
Returns
‪CompositeExpression The result of query builder expression(s)

Implements TYPO3\CMS\Core\Database\Query\Restriction\QueryRestrictionInterface.

Definition at line 44 of file RootLevelRestriction.php.

References TYPO3\CMS\Core\Database\Query\Expression\ExpressionBuilder\and(), and TYPO3\CMS\Core\Database\Query\Expression\ExpressionBuilder\eq().

Member Data Documentation

◆ $tableNames

array TYPO3\CMS\Core\Database\Query\Restriction\RootLevelRestriction::$tableNames
protected