uw Thu Mar 8 12:41:40 2001 EDT
Modified files:
/php4/pear Cache.php
/php4/pear/Cache Container.php
Log:
Formatting and minor inline doc changes.
Index: php4/pear/Cache.php
diff -u php4/pear/Cache.php:1.6 php4/pear/Cache.php:1.7
--- php4/pear/Cache.php:1.6 Thu Mar 8 12:39:15 2001
+++ php4/pear/Cache.php Thu Mar 8 12:41:39 2001
@@ -16,7 +16,7 @@
// | Sebastian Bergmann <[EMAIL PROTECTED]> |
// +----------------------------------------------------------------------+
//
-// $Id: Cache.php,v 1.6 2001/03/08 20:39:15 uw Exp $
+// $Id: Cache.php,v 1.7 2001/03/08 20:41:39 uw Exp $
require_once "Cache/Error.php";
@@ -26,7 +26,7 @@
* TODO: Simple usage example goes here.
*
* @author Ulf Wendel <[EMAIL PROTECTED]>
-* @version $Id: Cache.php,v 1.6 2001/03/08 20:39:15 uw Exp $
+* @version $Id: Cache.php,v 1.7 2001/03/08 20:41:39 uw Exp $
* @package Cache
* @access public
*/
@@ -281,5 +281,6 @@
$last_run = time();
}
} // end func garbageCollection
+
} // end class cache
?>
Index: php4/pear/Cache/Container.php
diff -u php4/pear/Cache/Container.php:1.8 php4/pear/Cache/Container.php:1.9
--- php4/pear/Cache/Container.php:1.8 Thu Mar 8 12:39:15 2001
+++ php4/pear/Cache/Container.php Thu Mar 8 12:41:39 2001
@@ -17,7 +17,7 @@
// | Christian Stocker <[EMAIL PROTECTED]> |
// +----------------------------------------------------------------------+
//
-// $Id: Container.php,v 1.8 2001/03/08 20:39:15 uw Exp $
+// $Id: Container.php,v 1.9 2001/03/08 20:41:39 uw Exp $
require_once "Cache/Error.php";
@@ -39,7 +39,7 @@
* not recommended!
*
* @author Ulf Wendel <[EMAIL PROTECTED]>
-* @version $Id: Container.php,v 1.8 2001/03/08 20:39:15 uw Exp $
+* @version $Id: Container.php,v 1.9 2001/03/08 20:41:39 uw Exp $
* @package Cache
* @access public
* @abstract
@@ -364,6 +364,7 @@
return serialize($data);
} // end func encode
+
/**
* Decodes the data from the storage container.
*
@@ -376,19 +377,19 @@
return unserialize($data);
} // end func decode
+
/**
* Translates human readable/relative times in unixtime
*
- * @var mixed can be in the following formats:
+ * @param mixed can be in the following formats:
* human readable : yyyymmddhhmm[ss]] eg: 20010308095100
* relative in seconds (1) : +xx eg: +10
* relative in seconds (2) : x < 946681200 eg: 10
* absolute unixtime : x < 2147483648 eg: 2147483648
* see comments in code for details
+ * @return integer unix timestamp
*/
-
function getExpiresAbsolute($expires)
-
{
if (!$expires)
return 0;
@@ -416,6 +417,8 @@
$second = substr($expires, 12, 2);
return mktime($hour, $minute, $second, $month, $day, $year);
}
- }
-}
+
+ } // end func getExpireAbsolute
+
+} // end class Container
?>
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]