public function PagerDefault::limit

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.

File

includes/pager.inc, line 137
Functions to aid in presenting database results as a set of pages.

Class

PagerDefault
Query extender for pager queries.

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!pager.inc/function/PagerDefault::limit/7.x