public function HeartbeatStream::setItemsMax in Heartbeat 6.4
Same name and namespace in other branches
- 7 includes/heartbeatstream.inc \HeartbeatStream::setItemsMax()
 
Set the maximum number of items to fetch
File
- includes/
heartbeatstream.inc, line 155  - HeartbeatStream object Parameter object that is given to a HeartbeatAccess object to form a full stream of handled activity objects.
 
Class
- HeartbeatStream
 - Class HeartbeatStream
 
Code
public function setItemsMax($page) {
  $this->oldest_date = variable_get('heartbeat_activity_log_cron_delete', 2678400);
  if ($page) {
    $this->limit_sql = $this->page_items_max;
  }
  else {
    $this->limit_sql = $this->block_items_max;
  }
}