function tripal_views_query::build
3.x tripal_views_query.inc | tripal_views_query::build(&$view) |
Overrides build().
File
- tripal/
tripal_views_query.inc, line 177
Class
Code
function build(&$view) {
// Make the query distinct if the option was set.
if (!empty($this->options['distinct'])) {
$this->set_distinct(TRUE, !empty($this->options['pure_distinct']));
}
// 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->cquery;
}