You are here

public function HeartbeatMessageBuilder::hasMoreMessages in Heartbeat 6.4

Function to check if more/older messages can be loaded

Return value

Boolean has more messages

File

includes/heartbeatmessagebuilder.inc, line 311
Strategy with access behaviour

Class

HeartbeatMessageBuilder
Class HeartbeatMessageBuilder Message builder that fetches and customizes users activity on the site. The builder takes a heartbeataccess object to handle the request to fetch the messages.

Code

public function hasMoreMessages($page = TRUE) {
  $stream = $this->_heartbeatState
    ->getStream();
  if ($page) {
    $display_pager = $stream->page_show_pager;
  }
  else {
    $display_pager = $stream->block_show_pager;
  }
  return $stream->pager && $display_pager;
}