Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
7b3a7b2f
Commit
7b3a7b2f
authored
May 29, 2013
by
Alex Pott
Browse files
Issue
#2002964
by markie, borisson_: Rename Views method get_lifespan() to getLifespan().
parent
63d371ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php
View file @
7b3a7b2f
...
...
@@ -97,18 +97,18 @@ public function validateOptionsForm(&$form, &$form_state) {
}
public
function
summaryTitle
()
{
$results_lifespan
=
$this
->
get
_l
ifespan
(
'results'
);
$output_lifespan
=
$this
->
get
_l
ifespan
(
'output'
);
$results_lifespan
=
$this
->
get
L
ifespan
(
'results'
);
$output_lifespan
=
$this
->
get
L
ifespan
(
'output'
);
return
format_interval
(
$results_lifespan
,
1
)
.
'/'
.
format_interval
(
$output_lifespan
,
1
);
}
function
get
_l
ifespan
(
$type
)
{
protected
function
get
L
ifespan
(
$type
)
{
$lifespan
=
$this
->
options
[
$type
.
'_lifespan'
]
==
'custom'
?
$this
->
options
[
$type
.
'_lifespan_custom'
]
:
$this
->
options
[
$type
.
'_lifespan'
];
return
$lifespan
;
}
function
cache_expire
(
$type
)
{
$lifespan
=
$this
->
get
_l
ifespan
(
$type
);
$lifespan
=
$this
->
get
L
ifespan
(
$type
);
if
(
$lifespan
)
{
$cutoff
=
REQUEST_TIME
-
$lifespan
;
return
$cutoff
;
...
...
@@ -119,7 +119,7 @@ function cache_expire($type) {
}
function
cache_set_expire
(
$type
)
{
$lifespan
=
$this
->
get
_l
ifespan
(
$type
);
$lifespan
=
$this
->
get
L
ifespan
(
$type
);
if
(
$lifespan
)
{
return
time
()
+
$lifespan
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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