Rename storage* to container*.

This commit is contained in:
Sebastian Bergmann 2001-08-10 16:12:33 +00:00
parent 8ff094046d
commit 5ac3adf9d2

View File

@ -121,18 +121,18 @@ class Cache extends PEAR {
/**
*
* @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