cvs: php4 /pear Cache.php /pear/Cache Function.php OutputCompression.php
| From: | Sebastian Bergmann | Date: | Fri, 10 Aug 2001 16:12:34 +0000 |
| Subject: | cvs: php4 /pear Cache.php /pear/Cache Function.php OutputCompression.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-459@lists.php.net to get a copy of this message | ||
sebastian Fri Aug 10 12:12:34 2001 EDT
Modified files:
/php4/pear Cache.php
/php4/pear/Cache Function.php OutputCompression.php
Log:
Rename storage* to container*.
Index: php4/pear/Cache.php
diff -u php4/pear/Cache.php:1.13 php4/pear/Cache.php:1.14
--- php4/pear/Cache.php:1.13 Sat Jul 7 19:15:08 2001
+++ php4/pear/Cache.php Fri Aug 10 12:12:33 2001
@@ -16,7 +16,7 @@
// | Sebastian Bergmann <sb@sebastian-bergmann.de> |
// +----------------------------------------------------------------------+
//
-// $Id: Cache.php,v 1.13 2001/07/07 23:15:08 sbergmann Exp $
+// $Id: Cache.php,v 1.14 2001/08/10 16:12:33 sebastian Exp $
require_once 'Cache/Error.php';
@@ -58,7 +58,7 @@
* bad circumstances (especially with the file container)
*
* @author Ulf Wendel <ulf.wendel@phpdoc.de>
-* @version $Id: Cache.php,v 1.13 2001/07/07 23:15:08 sbergmann Exp $
+* @version $Id: Cache.php,v 1.14 2001/08/10 16:12:33 sebastian Exp $
* @package Cache
* @access public
*/
@@ -121,18 +121,18 @@
/**
*
- * @param string Name of storage container class
- * @param array Array with storage class dependend config options
+ * @param string Name of container class
+ * @param array Array with container class options
*/
- function Cache($storage_driver, $storage_options = '')
+ function Cache($container, $container_options = '')
{
$this->PEAR();
- $storage_driver = strtolower($storage_driver);
- $storage_class = 'Cache_Container_' . $storage_driver;
- $storage_classfile = 'Cache/Container/' . $storage_driver . '.php';
+ $container = strtolower($container);
+ $container_class = 'Cache_Container_' . $container;
+ $container_classfile = 'Cache/Container/' . $container . '.php';
- include_once $storage_classfile;
- $this->container = new $storage_class($storage_options);
+ include_once $container_classfile;
+ $this->container = new $container_class($container_options);
}
//deconstructor
Index: php4/pear/Cache/Function.php
diff -u php4/pear/Cache/Function.php:1.8 php4/pear/Cache/Function.php:1.9
--- php4/pear/Cache/Function.php:1.8 Fri Aug 10 06:36:23 2001
+++ php4/pear/Cache/Function.php Fri Aug 10 12:12:34 2001
@@ -45,7 +45,7 @@
* @module Function_Cache
* @modulegroup Function_Cache
* @package Cache
-* @version $Revision: 1.8 $
+* @version $Revision: 1.9 $
* @access public
*/
@@ -65,7 +65,7 @@
// | Authors: Sebastian Bergmann <sb@sebastian-bergmann.de> |
// +----------------------------------------------------------------------+
//
-// $Id: Function.php,v 1.8 2001/08/10 10:36:23 sebastian Exp $
+// $Id: Function.php,v 1.9 2001/08/10 16:12:34 sebastian Exp $
require_once 'Cache.php';
@@ -75,17 +75,17 @@
/**
* Constructor
*
- * @param string Name of storage container class
- * @param array Array with storage class dependend config options
+ * @param string Name of container class
+ * @param array Array with container class options
*/
- function Cache_Function($storage_driver = 'file',
- $storage_options = array('cache_dir' =>
'.',
- 'filename_prefix' =>
'cache_'
- ),
+ function Cache_Function($container = 'file',
+ $container_options = array('cache_dir' =>
'.',
+ 'filename_prefix' =>
'cache_'
+ ),
$expires = 3600
)
{
- $this->Cache($storage_driver, $storage_options);
+ $this->Cache($container, $container_options);
$this->expires = $expires;
}
Index: php4/pear/Cache/OutputCompression.php
diff -u php4/pear/Cache/OutputCompression.php:1.4 php4/pear/Cache/OutputCompression.php:1.5
--- php4/pear/Cache/OutputCompression.php:1.4 Sat Jul 7 19:15:13 2001
+++ php4/pear/Cache/OutputCompression.php Fri Aug 10 12:12:34 2001
@@ -23,7 +23,7 @@
*
* Based upon a case study from Christian Stocker and inspired by jpcache.
*
-* @version $Id: OutputCompression.php,v 1.4 2001/07/07 23:15:13 sbergmann Exp $
+* @version $Id: OutputCompression.php,v 1.5 2001/08/10 16:12:34 sebastian Exp $
* @author Ulf Wendel <ulf.wendel@phpdoc.de>, Christian Stocker <chregu@nomad.ch>
* @access public
* @package Cache
@@ -53,14 +53,14 @@
/**
* Sets the storage details and the content encoding used (if not autodetection)
*
- * @param string name of the storage container to use
- * @param array storage container options
+ * @param string Name of container class
+ * @param array Array with container class options
* @param string content encoding mode - auto => test which encoding the user accepts
*/
- function Cache_OutputCompression($storage_driver, $storage_options = '', $encoding =
'auto') {
+ function Cache_OutputCompression($container, $container_options = '', $encoding =
'auto') {
$this->setEncoding($encoding);
- $this->Cache($storage_driver, $storage_options);
+ $this->Cache($container, $container_options);
} // end constructor