function views_plugin_pager_some::query

Same name and namespace in other branches
  1. 6.x-3.x plugins/views_plugin_pager_some.inc \views_plugin_pager_some::query()

Modify the query for paging.

This is called during the build phase and can directly modify the query.

Overrides views_plugin_pager::query

File

plugins/views_plugin_pager_some.inc, line 74

Class

views_plugin_pager_some
Plugin for views without pagers.

Code

public function query() {
  $this->view->query
    ->set_limit($this->options['items_per_page']);
  $this->view->query
    ->set_offset($this->options['offset']);
}