1 pager.class.inc public PagerDefault::limit($limit = 10)

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.

Return value

PagerDefault: The current pager object.

File

core/includes/pager.class.inc, line 137

Class

PagerDefault
Query extender for pager queries.

Code

public function limit($limit = 10) {
  $this->limit = $limit;
  return $this;
}