public function PagerActivity::setOffsetTime in Heartbeat 7
Sets the offset timestamps.
File
- ./
heartbeat.module, line 1226 - Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.
Class
- PagerActivity
- Query extender for heartbeat pager queries.
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, '>');
}
}