EndTimeRestriction implements QueryRestrictionInterface
Restriction to filter records with an end time set that has passed
Table of Contents
Interfaces
- QueryRestrictionInterface
- The main restriction interface. All restrictions (including the collections) must implement this.
Properties
- $accessTimeStamp : int|null
Methods
- __construct() : mixed
- buildExpression() : CompositeExpression
- Main method to build expressions for given tables Evaluates the ctrl/enablecolumns/endtime flag of the table and adds the according restriction if set
- getAccessTimeStamp() : int
- Resolved late, so that merely creating a restriction container does not access the Context, and so that a date aspect set after instantiation - for instance by the preview simulator - is still taken into account.
Properties
$accessTimeStamp
protected
int|null
$accessTimeStamp
Methods
__construct()
public
__construct([int|null $accessTimeStamp = null ]) : mixed
Parameters
- $accessTimeStamp : int|null = null
buildExpression()
Main method to build expressions for given tables Evaluates the ctrl/enablecolumns/endtime flag of the table and adds the according restriction if set
public
buildExpression(array<string|int, mixed> $queriedTables, ExpressionBuilder $expressionBuilder) : CompositeExpression
Parameters
- $queriedTables : array<string|int, mixed>
-
Array of tables, where array key is table alias and value is a table name
- $expressionBuilder : ExpressionBuilder
-
Expression builder instance to add restrictions with
Return values
CompositeExpression —The result of query builder expression(s)
getAccessTimeStamp()
Resolved late, so that merely creating a restriction container does not access the Context, and so that a date aspect set after instantiation - for instance by the preview simulator - is still taken into account.
protected
getAccessTimeStamp() : int