Issue #2003238 by nathangervais: Rename Views summary_argument() to summaryArgument().
parent
c6698cf577
commit
f6ea9cd2a2
|
@ -884,7 +884,7 @@ abstract class ArgumentPluginBase extends HandlerBase {
|
|||
* @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 @@ class DayDate extends Date {
|
|||
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 @@ use Drupal\views\ViewExecutable;
|
|||
/**
|
||||
* 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 @@ class ManyToOne extends ArgumentPluginBase {
|
|||
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 @@ class MonthDate extends Date {
|
|||
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 @@ class String extends ArgumentPluginBase {
|
|||
}
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue