function google_analytics_reports_plugin_query_google_analytics::build in Google Analytics Reports 7.3
Builds the necessary info to execute the query.
Overrides views_plugin_query::build
File
- plugins/
google_analytics_reports_plugin_query_google_analytics.inc, line 213 - Defines the default query object which builds queries for the Google Analytics Reports API.
Class
- google_analytics_reports_plugin_query_google_analytics
- Object used to create a Google Analytics Core Reporting API query.
Code
function build(&$view) {
// Store the view in the object to be able to use it later.
$this->view = $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'] = $this
->query(TRUE);
}