diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/argument/GroupByNumeric.php b/core/modules/views/lib/Drupal/views/Plugin/views/argument/GroupByNumeric.php index 7e8ef76..def4696 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/argument/GroupByNumeric.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/argument/GroupByNumeric.php @@ -23,7 +23,7 @@ public function query($group_by = FALSE) { $field = $this->getField(); $placeholder = $this->placeholder(); - $this->query->add_having_expression(0, "$field = $placeholder", array($placeholder => $this->argument)); + $this->query->addHavingExpression(0, "$field = $placeholder", array($placeholder => $this->argument)); } public function adminLabel($short = FALSE) { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php index 02aad33..1f6a914 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/GroupByNumeric.php @@ -31,17 +31,17 @@ function op_between($field) { $placeholder_min = $this->placeholder(); $placeholder_max = $this->placeholder(); if ($this->operator == 'between') { - $this->query->add_having_expression($this->options['group'], "$field >= $placeholder_min", array($placeholder_min => $this->value['min'])); - $this->query->add_having_expression($this->options['group'], "$field <= $placeholder_max", array($placeholder_max => $this->value['max'])); + $this->query->addHavingExpression($this->options['group'], "$field >= $placeholder_min", array($placeholder_min => $this->value['min'])); + $this->query->addHavingExpression($this->options['group'], "$field <= $placeholder_max", array($placeholder_max => $this->value['max'])); } else { - $this->query->add_having_expression($this->options['group'], "$field <= $placeholder_min OR $field >= $placeholder_max", array($placeholder_min => $this->value['min'], $placeholder_max => $this->value['max'])); + $this->query->addHavingExpression($this->options['group'], "$field <= $placeholder_min OR $field >= $placeholder_max", array($placeholder_min => $this->value['min'], $placeholder_max => $this->value['max'])); } } function op_simple($field) { $placeholder = $this->placeholder(); - $this->query->add_having_expression($this->options['group'], "$field $this->operator $placeholder", array($placeholder => $this->value['value'])); + $this->query->addHavingExpression($this->options['group'], "$field $this->operator $placeholder", array($placeholder => $this->value['value'])); } function op_empty($field) { @@ -52,7 +52,7 @@ function op_empty($field) { $operator = "IS NOT NULL"; } - $this->query->add_having_expression($this->options['group'], "$field $operator"); + $this->query->addHavingExpression($this->options['group'], "$field $operator"); } public function adminLabel($short = FALSE) { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php b/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php index 3f7c8bd..a838933 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php @@ -953,7 +953,7 @@ function add_having($group, $field, $value = NULL, $operator = NULL) { * * @see QueryConditionInterface::having() */ - function add_having_expression($group, $snippet, $args = array()) { + function addHavingExpression($group, $snippet, $args = array()) { // Ensure all variants of 0 are actually 0. Thus '', 0 and NULL are all // the default group. if (empty($group)) { @@ -1034,7 +1034,7 @@ function add_orderby($table, $field = NULL, $order = 'ASC', $alias = '', $params * for ensuring that the fields are fully qualified and the table is properly * added. */ - function add_groupby($clause) { + function addGroupby($clause) { // Only add it if it's not already in there. if (!in_array($clause, $this->groupby)) { $this->groupby[] = $clause; @@ -1243,7 +1243,7 @@ public function query($get_count = FALSE) { // Check query distinct value. if (empty($this->no_distinct) && $this->distinct && !empty($this->fields)) { $base_field_alias = $this->add_field($this->view->storage->get('base_table'), $this->view->storage->get('base_field')); - $this->add_groupby($base_field_alias); + $this->addGroupby($base_field_alias); $distinct = TRUE; }