summaryrefslogtreecommitdiff
path: root/lib/smarty3/sysplugins/smarty_cacheresource.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_cacheresource.php')
-rw-r--r--lib/smarty3/sysplugins/smarty_cacheresource.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/smarty3/sysplugins/smarty_cacheresource.php b/lib/smarty3/sysplugins/smarty_cacheresource.php
index 2a4552c..91e9f39 100644
--- a/lib/smarty3/sysplugins/smarty_cacheresource.php
+++ b/lib/smarty3/sysplugins/smarty_cacheresource.php
@@ -25,12 +25,12 @@ abstract class Smarty_CacheResource
/**
* populate Cached Object with meta data from Resource
*
- * @param Smarty_Template_Cached $cached cached object
+ * @param \Smarty_Template_Cached $cached cached object
* @param Smarty_Internal_Template $_template template object
*
* @return void
*/
- abstract public function populate(Smarty_Template_Cached $cached, Smarty_Internal_Template $_template);
+ abstract public function populate(\Smarty_Template_Cached $cached, Smarty_Internal_Template $_template);
/**
* populate Cached Object with timestamp and exists from Resource
@@ -50,8 +50,11 @@ abstract class Smarty_CacheResource
*
* @return boolean true or false if the cached content does not exist
*/
- abstract public function process(Smarty_Internal_Template $_template, Smarty_Template_Cached $cached = null,
- $update = false);
+ abstract public function process(
+ Smarty_Internal_Template $_template,
+ Smarty_Template_Cached $cached = null,
+ $update = false
+ );
/**
* Write the rendered template output to cache
@@ -66,11 +69,11 @@ abstract class Smarty_CacheResource
/**
* Read cached template from cache
*
- * @param Smarty_Internal_Template $_template template object
+ * @param Smarty_Internal_Template $_template template object
*
* @return string content
*/
- abstract function readCachedContent(Smarty_Internal_Template $_template);
+ abstract public function readCachedContent(Smarty_Internal_Template $_template);
/**
* Return cached content
@@ -87,7 +90,6 @@ abstract class Smarty_CacheResource
$unifunc($_template);
return ob_get_clean();
}
-
return null;
}
@@ -133,7 +135,6 @@ abstract class Smarty_CacheResource
}
sleep(1);
}
-
return $hadLock;
}
@@ -193,12 +194,10 @@ abstract class Smarty_CacheResource
if (!isset($type)) {
$type = $smarty->caching_type;
}
-
// try smarty's cache
if (isset($smarty->_cache[ 'cacheresource_handlers' ][ $type ])) {
return $smarty->_cache[ 'cacheresource_handlers' ][ $type ];
}
-
// try registered resource
if (isset($smarty->registered_cache_resources[ $type ])) {
// do not cache these instances as they may vary from instance to instance