You are here

public function views_xml_backend_plugin_query_xml::build in Views XML Backend 7

Same name and namespace in other branches
  1. 6 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 66
Contains views_xml_backend_plugin_query_xml.

Class

views_xml_backend_plugin_query_xml
@file Contains views_xml_backend_plugin_query_xml.

Code

public 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();
}