TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
DeletedRestriction Class Reference
Inheritance diagram for DeletedRestriction:
QueryRestrictionInterface

Public Member Functions

 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 25 of file DeletedRestriction.php.

Member Function Documentation

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$queriedTablesArray of tables, where array key is table name and value potentially an alias
ExpressionBuilder$expressionBuilderExpression builder instance to add restrictions with
Returns
CompositeExpression The result of query builder expression(s)

Implements QueryRestrictionInterface.

Definition at line 35 of file DeletedRestriction.php.

References $GLOBALS, ExpressionBuilder\andX(), and ExpressionBuilder\eq().