‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Database\Query\Restriction\StartTimeRestriction Class Reference
Inheritance diagram for TYPO3\CMS\Core\Database\Query\Restriction\StartTimeRestriction:
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, that should not be shown until the start time has been reached

Definition at line 26 of file StartTimeRestriction.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ buildExpression()

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

Main method to build expressions for given tables Evaluates the ctrl/enablecolumns/starttime 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 StartTimeRestriction.php.

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

Member Data Documentation

◆ $accessTimeStamp

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