Commit f6ea9cd2 authored by alexpott's avatar alexpott

Issue #2003238 by nathangervais: Rename Views summary_argument() to summaryArgument().

parent c6698cf5
......@@ -884,7 +884,7 @@ public function summarySort($order, $by = NULL) {
* @param $data
* The query results for the row.
*/
function summary_argument($data) {
public function summaryArgument($data) {
return $data->{$this->base_alias};
}
......
......@@ -43,7 +43,7 @@ function title() {
return format_date(strtotime("2005" . "05" . $day . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
}
function summary_argument($data) {
public function summaryArgument($data) {
// Make sure the argument contains leading zeroes.
return str_pad($data->{$this->base_alias}, 2, '0', STR_PAD_LEFT);
}
......
......@@ -14,7 +14,7 @@
/**
* Abstract argument handler for simple formulae.
*
* Child classes of this object should implement summary_argument, at least.
* Child classes of this object should implement summaryArgument, at least.
*
* Definition terms:
* - formula: The formula to use for this handler.
......
......@@ -184,7 +184,7 @@ function summary_query() {
return $this->summaryBasics();
}
function summary_argument($data) {
public function summaryArgument($data) {
$value = $data->{$this->base_alias};
if (empty($value)) {
$value = 0;
......
......@@ -42,7 +42,7 @@ function title() {
return format_date(strtotime("2005" . $month . "15" . " 00:00:00 UTC"), 'custom', $this->format, 'UTC');
}
function summary_argument($data) {
public function summaryArgument($data) {
// Make sure the argument contains leading zeroes.
return str_pad($data->{$this->base_alias}, 2, '0', STR_PAD_LEFT);
}
......
......@@ -241,7 +241,7 @@ public function query($group_by = FALSE) {
}
}
function summary_argument($data) {
public function summaryArgument($data) {
$value = $this->caseTransform($data->{$this->base_alias}, $this->options['path_case']);
if (!empty($this->options['transform_dash'])) {
$value = strtr($value, ' ', '-');
......
......@@ -433,7 +433,7 @@ function template_preprocess_views_view_summary(&$vars) {
$row_args = array();
foreach ($vars['rows'] as $id => $row) {
$row_args[$id] = $argument->summary_argument($row);
$row_args[$id] = $argument->summaryArgument($row);
}
$argument->process_summary_arguments($row_args);
......@@ -493,7 +493,7 @@ function template_preprocess_views_view_summary_unformatted(&$vars) {
// this could cause performance problems.
$row_args = array();
foreach ($vars['rows'] as $id => $row) {
$row_args[$id] = $argument->summary_argument($row);
$row_args[$id] = $argument->summaryArgument($row);
}
$argument->process_summary_arguments($row_args);
......
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