| 7 pager.inc | public PagerDefault::limit($limit = 10) |
| 8 pager.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.
File
- includes/
pager.inc, line 137 - Functions to aid in presenting database results as a set of pages.
Code
public function limit($limit = 10) {
$this->limit = $limit;
return $this;
}
Login or register to post comments
Comments
Disable pager is not expected behaviour
I would expect disabling the pager would mean everything is shown, instead nothing is returned.
I assumed the same - both
I assumed the same - both from how the views module works and after reading the function comments above.
Based on the comments for the PagerDefault::execute method though (http://api.drupal.org/api/drupal/includes--pager.inc/function/PagerDefau...), it appears that killing the entire query is the expected behavior.