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

Public Member Functions

CompositeExpression buildExpression (array $queriedTables, ExpressionBuilder $expressionBuilder)
 

Detailed Description

Restriction to filter records that have been marked as hidden

Definition at line 26 of file HiddenRestriction.php.

Member Function Documentation

◆ buildExpression()

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

Main method to build expressions for given tables Evaluates the ctrl/enablecolumns/disabled flag of the table and adds the according restriction if set

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 36 of file HiddenRestriction.php.

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