Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
f6ea9cd2
Commit
f6ea9cd2
authored
Jun 05, 2013
by
alexpott
Browse files
Issue
#2003238
by nathangervais: Rename Views summary_argument() to summaryArgument().
parent
c6698cf5
Changes
7
Hide whitespace changes
Inline
Side-by-side
core/modules/views/lib/Drupal/views/Plugin/views/argument/ArgumentPluginBase.php
View file @
f6ea9cd2
...
...
@@ -884,7 +884,7 @@ public function summarySort($order, $by = NULL) {
* @param $data
* The query results for the row.
*/
function
summary
_a
rgument
(
$data
)
{
public
function
summary
A
rgument
(
$data
)
{
return
$data
->
{
$this
->
base_alias
};
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument/DayDate.php
View file @
f6ea9cd2
...
...
@@ -43,7 +43,7 @@ function title() {
return
format_date
(
strtotime
(
"2005"
.
"05"
.
$day
.
" 00:00:00 UTC"
),
'custom'
,
$this
->
format
,
'UTC'
);
}
function
summary
_a
rgument
(
$data
)
{
public
function
summary
A
rgument
(
$data
)
{
// Make sure the argument contains leading zeroes.
return
str_pad
(
$data
->
{
$this
->
base_alias
},
2
,
'0'
,
STR_PAD_LEFT
);
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument/Formula.php
View file @
f6ea9cd2
...
...
@@ -14,7 +14,7 @@
/**
* Abstract argument handler for simple formulae.
*
* Child classes of this object should implement summary
_a
rgument, at least.
* Child classes of this object should implement summary
A
rgument, at least.
*
* Definition terms:
* - formula: The formula to use for this handler.
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument/ManyToOne.php
View file @
f6ea9cd2
...
...
@@ -184,7 +184,7 @@ function summary_query() {
return
$this
->
summaryBasics
();
}
function
summary
_a
rgument
(
$data
)
{
public
function
summary
A
rgument
(
$data
)
{
$value
=
$data
->
{
$this
->
base_alias
};
if
(
empty
(
$value
))
{
$value
=
0
;
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument/MonthDate.php
View file @
f6ea9cd2
...
...
@@ -42,7 +42,7 @@ function title() {
return
format_date
(
strtotime
(
"2005"
.
$month
.
"15"
.
" 00:00:00 UTC"
),
'custom'
,
$this
->
format
,
'UTC'
);
}
function
summary
_a
rgument
(
$data
)
{
public
function
summary
A
rgument
(
$data
)
{
// Make sure the argument contains leading zeroes.
return
str_pad
(
$data
->
{
$this
->
base_alias
},
2
,
'0'
,
STR_PAD_LEFT
);
}
...
...
core/modules/views/lib/Drupal/views/Plugin/views/argument/String.php
View file @
f6ea9cd2
...
...
@@ -241,7 +241,7 @@ public function query($group_by = FALSE) {
}
}
function
summary
_a
rgument
(
$data
)
{
public
function
summary
A
rgument
(
$data
)
{
$value
=
$this
->
caseTransform
(
$data
->
{
$this
->
base_alias
},
$this
->
options
[
'path_case'
]);
if
(
!
empty
(
$this
->
options
[
'transform_dash'
]))
{
$value
=
strtr
(
$value
,
' '
,
'-'
);
...
...
core/modules/views/views.theme.inc
View file @
f6ea9cd2
...
...
@@ -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
_a
rgument
(
$row
);
$row_args
[
$id
]
=
$argument
->
summary
A
rgument
(
$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
_a
rgument
(
$row
);
$row_args
[
$id
]
=
$argument
->
summary
A
rgument
(
$row
);
}
$argument
->
process_summary_arguments
(
$row_args
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment