public function HeartbeatSelectExtender::setOffsetTime in Heartbeat 8
Sets the offset timestamps.
File
- src/
HeartbeatSelectExtender.php, line 28
Class
- HeartbeatSelectExtender
- Created by IntelliJ IDEA. User: logicp Date: 5/28/17 Time: 1:41 PM
Code
public function setOffsetTime($before, $after = 0) {
$this->query
->condition('ha.timestamp', $before, '<');
if ($after > 0) {
$this->query
->condition('ha.timestamp', $_SERVER['REQUEST_TIME'] - $after, '>');
}
}