summaryrefslogtreecommitdiff
path: root/framework/Web/THttpResponse.php
diff options
context:
space:
mode:
authorxue <>2006-02-08 21:56:07 +0000
committerxue <>2006-02-08 21:56:07 +0000
commitb4103f28384d4ce9b5dc8e8a1abfda378eb42db0 (patch)
treecfe53b6c3d4aae7b56789fd4feaf03b3f426e9fb /framework/Web/THttpResponse.php
parent1f19172f3df377ca0e88bb230d6f374ebef41b91 (diff)
Modified application lifecycles.
Diffstat (limited to 'framework/Web/THttpResponse.php')
-rw-r--r--framework/Web/THttpResponse.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php
index 1cbf9751..d64a82af 100644
--- a/framework/Web/THttpResponse.php
+++ b/framework/Web/THttpResponse.php
@@ -297,6 +297,18 @@ class THttpResponse extends TModule implements ITextWriter
}
/**
+ * Returns the content in the output buffer.
+ * The buffer will NOT be cleared after calling this method.
+ * Use {@link clear()} is you want to clear the buffer.
+ * @return string output that is in the buffer.
+ */
+ public function getContents()
+ {
+ Prado::trace("Retrieving output",'System.Web.THttpResponse');
+ return $this->_bufferOutput?ob_get_contents():'';
+ }
+
+ /**
* Clears any existing buffered content.
*/
public function clear()