You are here

public function PagerActivity::limit in Heartbeat 7

Specify the maximum number of elements per page for this query.

The default if not specified is 10 items per page.

Parameters

$limit: An integer specifying the number of elements per page. If passed a false value (FALSE, 0, NULL), the pager is disabled.

File

./heartbeat.module, line 1243
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 limit($limit = 10) {
  $this->limit = $limit;
  return $this;
}