aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/demo/plugins/cacheresource.pdo_gzip.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/smarty/smarty/demo/plugins/cacheresource.pdo_gzip.php')
-rw-r--r--vendor/smarty/smarty/demo/plugins/cacheresource.pdo_gzip.php33
1 files changed, 16 insertions, 17 deletions
diff --git a/vendor/smarty/smarty/demo/plugins/cacheresource.pdo_gzip.php b/vendor/smarty/smarty/demo/plugins/cacheresource.pdo_gzip.php
index 8a9e0a5dd..5560b9e39 100644
--- a/vendor/smarty/smarty/demo/plugins/cacheresource.pdo_gzip.php
+++ b/vendor/smarty/smarty/demo/plugins/cacheresource.pdo_gzip.php
@@ -1,4 +1,5 @@
<?php
+require_once 'cacheresource.pdo.php';
/**
* PDO Cache Handler with GZIP support
@@ -11,33 +12,31 @@
* @require Smarty_CacheResource_Pdo class
* @author Beno!t POLASZEK - 2014
*/
-require_once 'cacheresource.pdo.php';
-
class Smarty_CacheResource_Pdo_Gzip extends Smarty_CacheResource_Pdo
{
-
- /*
- * Encodes the content before saving to database
- *
- * @param string $content
- * @return string $content
- * @access protected
+ /**
+ * Encodes the content before saving to database
+ *
+ * @param string $content
+ *
+ * @return string $content
+ * @access protected
*/
protected function inputContent($content)
{
return gzdeflate($content);
}
- /*
- * Decodes the content before saving to database
- *
- * @param string $content
- * @return string $content
- * @access protected
+ /**
+ * Decodes the content before saving to database
+ *
+ * @param string $content
+ *
+ * @return string $content
+ * @access protected
*/
protected function outputContent($content)
{
return gzinflate($content);
}
-}
- \ No newline at end of file
+}