Issue #2002350 by zschmid, IshaDakota: Rename Views method aggregation_method_distinct() to aggregationMethodDistinct().

8.0.x
Alex Pott 2013-05-29 12:15:49 +01:00
parent 2c2ae72033
commit e504933f66
1 changed files with 2 additions and 2 deletions

View File

@ -1667,7 +1667,7 @@ class Sql extends QueryPluginBase {
),
'count_distinct' => array(
'title' => t('Count DISTINCT'),
'method' => 'aggregation_method_distinct',
'method' => 'aggregationMethodDistinct',
'handler' => array(
'argument' => 'groupby_numeric',
'field' => 'numeric',
@ -1732,7 +1732,7 @@ class Sql extends QueryPluginBase {
return strtoupper($group_type) . '(' . $field . ')';
}
function aggregation_method_distinct($group_type, $field) {
public function aggregationMethodDistinct($group_type, $field) {
$group_type = str_replace('_distinct', '', $group_type);
return strtoupper($group_type) . '(DISTINCT ' . $field . ')';
}