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

Public Member Functions

 __construct (int $accessTimeStamp=null)
 
CompositeExpression buildExpression (array $queriedTables, ExpressionBuilder $expressionBuilder)
 

Protected Attributes

int $accessTimeStamp
 

Detailed Description

Restriction to filter records with an end time set that has passed

Definition at line 26 of file EndTimeRestriction.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Database\Query\Restriction\EndTimeRestriction::__construct ( int  $accessTimeStamp = null)

Member Function Documentation

◆ buildExpression()

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

Main method to build expressions for given tables Evaluates the ctrl/enablecolumns/endtime 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)
Exceptions

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

Definition at line 46 of file EndTimeRestriction.php.

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

Member Data Documentation

◆ $accessTimeStamp

int TYPO3\CMS\Core\Database\Query\Restriction\EndTimeRestriction::$accessTimeStamp
protected