summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-12-15 21:42:54 +0000
committerxue <>2006-12-15 21:42:54 +0000
commitc6717f9f133da710e7fd39e2c87162860ac549ec (patch)
tree8e6b92ad9c5d153458e4a14cefbcc2cef5f023bc
parentcfbb358ea25b4cc1b559d8816ec59faa9580a01f (diff)
reverted back protected methods to public.
-rw-r--r--framework/Web/THttpResponse.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php
index be4387e2..46d1b4f5 100644
--- a/framework/Web/THttpResponse.php
+++ b/framework/Web/THttpResponse.php
@@ -322,10 +322,11 @@ class THttpResponse extends TModule implements ITextWriter
/**
* Redirect the browser to another URL and exists the current application.
+ * This method is used internally. Please use {@link redirect} instead.
* @param string URL to be redirected to. If the URL is a relative one, the base URL of
* the current request will be inserted at the beginning.
*/
- protected function httpRedirect($url)
+ public function httpRedirect($url)
{
if(!$this->getApplication()->getRequestCompleted())
$this->getApplication()->onEndRequest();
@@ -358,8 +359,9 @@ class THttpResponse extends TModule implements ITextWriter
/**
* Outputs the buffered content, sends content-type and charset header.
+ * This method is used internally. Please use {@link flush} instead.
*/
- protected function flushContent()
+ public function flushContent()
{
Prado::trace("Flushing output",'System.Web.THttpResponse');
$this->sendContentTypeHeader();
@@ -490,10 +492,11 @@ class THttpResponse extends TModule implements ITextWriter
/**
* Create a new html writer intance.
+ * This method is used internally. Please use {@link createHtmlWriter} instead.
* @param string type of HTML writer to be created.
* @param ITextWriter text writer holding the contents.
*/
- protected function createNewHtmlWriter($type, $writer)
+ public function createNewHtmlWriter($type, $writer)
{
return Prado::createComponent($type, $writer);
}