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

8.0.x
Alex Pott 2013-06-05 08:22:07 +01:00
parent c6698cf577
commit f6ea9cd2a2
7 changed files with 8 additions and 8 deletions

View File

@ -884,7 +884,7 @@ abstract class ArgumentPluginBase extends HandlerBase {
* @param $data * @param $data
* The query results for the row. * The query results for the row.
*/ */
function summary_argument($data) { public function summaryArgument($data) {
return $data->{$this->base_alias}; return $data->{$this->base_alias};
} }

View File

@ -43,7 +43,7 @@ class DayDate extends Date {
return format_date(strtotime("2005" . "05" . $day . " 00:00:00 UTC"), 'custom', $this->format, 'UTC'); 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. // Make sure the argument contains leading zeroes.
return str_pad($data->{$this->base_alias}, 2, '0', STR_PAD_LEFT); return str_pad($data->{$this->base_alias}, 2, '0', STR_PAD_LEFT);
} }

View File

@ -14,7 +14,7 @@ use Drupal\views\ViewExecutable;
/** /**
* Abstract argument handler for simple formulae. * 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: * Definition terms:
* - formula: The formula to use for this handler. * - formula: The formula to use for this handler.

View File

@ -184,7 +184,7 @@ class ManyToOne extends ArgumentPluginBase {
return $this->summaryBasics(); return $this->summaryBasics();
} }
function summary_argument($data) { public function summaryArgument($data) {
$value = $data->{$this->base_alias}; $value = $data->{$this->base_alias};
if (empty($value)) { if (empty($value)) {
$value = 0; $value = 0;

View File

@ -42,7 +42,7 @@ class MonthDate extends Date {
return format_date(strtotime("2005" . $month . "15" . " 00:00:00 UTC"), 'custom', $this->format, 'UTC'); 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. // Make sure the argument contains leading zeroes.
return str_pad($data->{$this->base_alias}, 2, '0', STR_PAD_LEFT); return str_pad($data->{$this->base_alias}, 2, '0', STR_PAD_LEFT);
} }

View File

@ -241,7 +241,7 @@ class String extends ArgumentPluginBase {
} }
} }
function summary_argument($data) { public function summaryArgument($data) {
$value = $this->caseTransform($data->{$this->base_alias}, $this->options['path_case']); $value = $this->caseTransform($data->{$this->base_alias}, $this->options['path_case']);
if (!empty($this->options['transform_dash'])) { if (!empty($this->options['transform_dash'])) {
$value = strtr($value, ' ', '-'); $value = strtr($value, ' ', '-');

View File

@ -433,7 +433,7 @@ function template_preprocess_views_view_summary(&$vars) {
$row_args = array(); $row_args = array();
foreach ($vars['rows'] as $id => $row) { 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); $argument->process_summary_arguments($row_args);
@ -493,7 +493,7 @@ function template_preprocess_views_view_summary_unformatted(&$vars) {
// this could cause performance problems. // this could cause performance problems.
$row_args = array(); $row_args = array();
foreach ($vars['rows'] as $id => $row) { 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); $argument->process_summary_arguments($row_args);