cvs: php4 /pear/Cache Output.php
| From: | Christian Stocker | Date: | Mon, 26 Nov 2001 15:13:22 +0000 |
| Subject: | cvs: php4 /pear/Cache Output.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1409@lists.php.net to get a copy of this message | ||
chregu Mon Nov 26 10:13:22 2001 EDT
Modified files:
/php4/pear/Cache Output.php
Log:
printContent() for API-Compatibility with OutputCompression
Index: php4/pear/Cache/Output.php
diff -u php4/pear/Cache/Output.php:1.17 php4/pear/Cache/Output.php:1.18
--- php4/pear/Cache/Output.php:1.17 Sat Jul 7 19:15:13 2001
+++ php4/pear/Cache/Output.php Mon Nov 26 10:13:21 2001
@@ -17,7 +17,7 @@
// | Vinai Kopp <kopp@netzarbeiter.de> |
// +----------------------------------------------------------------------+
//
-// $Id: Output.php,v 1.17 2001/07/07 23:15:13 sbergmann Exp $
+// $Id: Output.php,v 1.18 2001/11/26 15:13:21 chregu Exp $
require_once 'Cache.php';
@@ -175,9 +175,22 @@
* @brother end()
*/
function endPrint($expire = 0, $userdata = '') {
- print $this->end($expire, $userdata);
+ $this->printContent($this->end($expire, $userdata));
} // end func endPrint
+ /**
+ * Sends the data to the user.
+ * This is for compatibility with OutputCompression
+ *
+ * @param string
+ * @access public
+ */
+ function printContent($content = '') {
+ if ('' == $content)
+ $content = &$this->container->cachedata;
+
+ print $content;
+ }
/**
* Returns the content of the output buffer but does not store it into the cache.
*