Commit 00a42593 authored by alexpott's avatar alexpott

Issue #2003304 by jibran, gdf, Dan Reinders, heddn: Rename Views method...

Issue #2003304 by jibran, gdf, Dan Reinders, heddn: Rename Views method set_count_field() to setCountField().
parent 9791575d
......@@ -798,7 +798,7 @@ protected function defaultSummary() {
* - addGroupBy: group on this field in order to create summaries.
* - addField: 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.
* - setCountField: Reset the count field so we get the right paging.
*
* @return
* The alias used to get the number of records (count) for this entry.
......@@ -859,7 +859,7 @@ public function summaryBasics($count_field = TRUE) {
$this->query->addGroupBy($this->name_alias);
if ($count_field) {
$this->query->set_count_field($this->tableAlias, $this->realField);
$this->query->setCountField($this->tableAlias, $this->realField);
}
$this->count_alias = $count_alias;
......
......@@ -52,7 +52,7 @@ protected function summaryQuery() {
// Add the field.
$this->base_alias = $this->name_alias = $this->query->addField(NULL, $formula, $this->field);
$this->query->set_count_field(NULL, $formula, $this->field);
$this->query->setCountField(NULL, $formula, $this->field);
return $this->summaryBasics(FALSE);
}
......
......@@ -157,13 +157,13 @@ protected function summaryQuery() {
if (empty($this->options['glossary'])) {
// Add the field.
$this->base_alias = $this->query->addField($this->tableAlias, $this->realField);
$this->query->set_count_field($this->tableAlias, $this->realField);
$this->query->setCountField($this->tableAlias, $this->realField);
}
else {
// Add the field.
$formula = $this->getFormula();
$this->base_alias = $this->query->addField(NULL, $formula, $this->field . '_truncated');
$this->query->set_count_field(NULL, $formula, $this->field, $this->field . '_truncated');
$this->query->setCountField(NULL, $formula, $this->field, $this->field . '_truncated');
}
$this->summaryNameField();
......
......@@ -160,7 +160,7 @@ protected function setDistinct($value = TRUE) {
/**
* Set what field the query will count() on for paging.
*/
function set_count_field($table, $field, $alias = NULL) {
public function setCountField($table, $field, $alias = NULL) {
if (empty($alias)) {
$alias = $table . '_' . $field;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment