You are here

public function HeartbeatStream::setItemsMax in Heartbeat 7

Same name and namespace in other branches
  1. 6.4 includes/heartbeatstream.inc \HeartbeatStream::setItemsMax()

Set the maximum number of items to fetch.

1 call to HeartbeatStream::setItemsMax()
HeartbeatStream::setConfig in includes/heartbeatstream.inc
setConfig().

File

includes/heartbeatstream.inc, line 413
HeartbeatStream object is the object that takes stream configuration to create a stream of activity objects. It is the controlling organ at the pre-query, query and post-query phases.

Class

HeartbeatStream
Abstract class HeartbeatStream This base class has final template methods which are used by the derived concretes. The HeartbeatStream is a state object that is given to the HeartbeatStreamBuilder to set the access to the current request.

Code

public function setItemsMax() {
  $this->oldest_date = variable_get('heartbeat_activity_log_cron_delete', 2678400);
  if ($this->_page) {
    $this->messages_max = $this->config->page_items_max;
  }
  else {
    $this->messages_max = $this->config->block_items_max;
  }
}