1 views_handler_argument_group_by_numeric.inc | views_handler_argument_group_by_numeric::query($group_by = FALSE) |
Set up the query for this argument.
The argument sent may be found at $this->argument.
Overrides views_handler_argument::query
File
- core/
modules/ views/ handlers/ views_handler_argument_group_by_numeric.inc, line 13 - Definition of views_handler_argument_group_by_numeric.
Class
- views_handler_argument_group_by_numeric
- Simple handler for arguments using group by.
Code
function query($group_by = FALSE) {
$this->ensure_my_table();
$field = $this->get_field();
$placeholder = $this->placeholder();
$this->query->add_having_expression(0, "$field = $placeholder", array($placeholder => $this->argument));
}