summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2013-05-29 06:01:50 (GMT)
committerAlex Pott2013-05-29 06:01:50 (GMT)
commit7b3a7b2f941d3fcf5e2506690fc0384b0696e9ce (patch)
treecd01a964b24ff2d744e9ceed394809f5bc671e95
parent63d371ad06fd7f6f38b977057e5f9b5c73a9b7f5 (diff)
Issue #2002964 by markie, borisson_: Rename Views method get_lifespan() to getLifespan().
-rw-r--r--core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php b/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php
index 537c40e..d376a93 100644
--- a/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php
+++ b/core/modules/views/lib/Drupal/views/Plugin/views/cache/Time.php
@@ -97,18 +97,18 @@ class Time extends CachePluginBase {
}
public function summaryTitle() {
- $results_lifespan = $this->get_lifespan('results');
- $output_lifespan = $this->get_lifespan('output');
+ $results_lifespan = $this->getLifespan('results');
+ $output_lifespan = $this->getLifespan('output');
return format_interval($results_lifespan, 1) . '/' . format_interval($output_lifespan, 1);
}
- function get_lifespan($type) {
+ protected function getLifespan($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_lifespan($type);
+ $lifespan = $this->getLifespan($type);
if ($lifespan) {
$cutoff = REQUEST_TIME - $lifespan;
return $cutoff;
@@ -119,7 +119,7 @@ class Time extends CachePluginBase {
}
function cache_set_expire($type) {
- $lifespan = $this->get_lifespan($type);
+ $lifespan = $this->getLifespan($type);
if ($lifespan) {
return time() + $lifespan;
}