lastActivityId = $lastActivityId; $this->query->condition('h.id', $this->lastActivityId, '>'); } /** * Sets the offset timestamps. */ public function setOffsetTime($before, $after = 0) { $this->query->condition('ha.timestamp', $before, '<'); if ($after > 0) { $this->query->condition('ha.timestamp', $_SERVER['REQUEST_TIME'] - $after, '>'); } } }