2 declare(strict_types = 1);
51 foreach ($queriedTables as $tableAlias => $tableName) {
52 $startTimeFieldName =
$GLOBALS[
'TCA'][$tableName][
'ctrl'][
'enablecolumns'][
'starttime'] ??
null;
53 if (!empty($startTimeFieldName)) {
54 if (empty($this->accessTimeStamp)) {
55 throw new \RuntimeException(
56 'accessTimeStamp needs to be set to an integer value, but is empty! Maybe $GLOBALS[\'SIM_ACCESS_TIME\'] has been overridden somewhere?',
60 $constraints[] = $expressionBuilder->
lte(
61 $tableAlias .
'.' . $startTimeFieldName,
62 (
int)$this->accessTimeStamp
66 return $expressionBuilder->
andX(...$constraints);