From b4103f28384d4ce9b5dc8e8a1abfda378eb42db0 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 8 Feb 2006 21:56:07 +0000 Subject: Modified application lifecycles. --- framework/Web/THttpResponse.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'framework/Web/THttpResponse.php') 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 @@ -296,6 +296,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. */ -- cgit v1.2.3