views_handler_argument_group_by_numeric.inc
Same filename in other branches
File
View source
<?php
/**
* Simple handler for arguments using group by.
*
* @ingroup views_argument_handlers
*/
class views_handler_argument_group_by_numeric extends views_handler_argument {
function query($group_by = FALSE) {
$this->ensure_my_table();
$placeholder = empty($this->definition['numeric']) ? "'%s'" : '%d';
$field = $this->get_field();
$this->query
->add_having(0, "{$field} = {$placeholder}", $this->argument);
}
function ui_name($short = FALSE) {
return $this->get_field(parent::ui_name($short));
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
views_handler_argument_group_by_numeric | Simple handler for arguments using group by. |