You are here

public function HeartbeatSelectExtender::setLastActivityId in Heartbeat 8

Sets the last id

File

src/HeartbeatSelectExtender.php, line 20

Class

HeartbeatSelectExtender
Created by IntelliJ IDEA. User: logicp Date: 5/28/17 Time: 1:41 PM

Code

public function setLastActivityId($lastActivityId) {
  $this->lastActivityId = $lastActivityId;
  $this->query
    ->condition('h.id', $this->lastActivityId, '>');
}