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

Public Member Functions

CompositeExpression buildExpression (array $queriedTables, ExpressionBuilder $expressionBuilder)
 

Detailed Description

Restriction to respect the soft-delete functionality of TYPO3. Filters out records, that were marked as deleted.

Definition at line 27 of file DeletedRestriction.php.

Member Function Documentation

◆ buildExpression()

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

Main method to build expressions for given tables Evaluates the ctrl/delete 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 37 of file DeletedRestriction.php.

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