You are here

function views_xml_backend_plugin_query_xml::build in Views XML Backend 6

Same name and namespace in other branches
  1. 7 views_xml_backend_plugin_query_xml.inc \views_xml_backend_plugin_query_xml::build()

Builds the necessary info to execute the query.

Overrides views_plugin_query::build

File

./views_xml_backend_plugin_query_xml.inc, line 36
Query plugin for views_xml_backend.

Class

views_xml_backend_plugin_query_xml
@file Query plugin for views_xml_backend.

Code

function build(&$view) {
  $view
    ->init_pager();

  // Let the pager modify the query to add limits.
  $this->pager
    ->query();
  $view->build_info['query'] = $this
    ->query();
  $view->build_info['count_query'] = 'count(' . $view->build_info['query'] . ')';
  $view->build_info['query_args'] = array();
}