function views_handler_argument::summary_query
Build the info for the summary query.
This must:
- add_groupby: group on this field in order to create summaries.
- add_field: add a 'num_nodes' field for the count. Usually it will be a count on $view->base_field
- set_count_field: Reset the count field so we get the right paging.
Return value
string The alias used to get the number of records (count) for this entry.
1 call to views_handler_argument::summary_query()
- views_handler_argument::default_summary in handlers/
views_handler_argument.inc - Default action: summary.
3 methods override views_handler_argument::summary_query()
- views_handler_argument_formula::summary_query in handlers/
views_handler_argument_formula.inc - Build the summary query based on a formula.
- views_handler_argument_many_to_one::summary_query in handlers/
views_handler_argument_many_to_one.inc - Build the info for the summary query.
- views_handler_argument_string::summary_query in handlers/
views_handler_argument_string.inc - Build the summary query based on a string.
File
-
handlers/
views_handler_argument.inc, line 897
Class
- views_handler_argument
- Base class for arguments.
Code
public function summary_query() {
$this->ensure_my_table();
// Add the field.
$this->base_alias = $this->query
->add_field($this->table_alias, $this->real_field);
$this->summary_name_field();
return $this->summary_basics();
}