summaryrefslogtreecommitdiff
path: root/framework/Web/THttpResponseAdapter.php
diff options
context:
space:
mode:
authorwei <>2006-12-09 09:17:22 +0000
committerwei <>2006-12-09 09:17:22 +0000
commit3c03a42d1edb0ec26110ace00f42e156cabff67b (patch)
tree66baa1cd4afca87668be07e62406e7d538dd1fbb /framework/Web/THttpResponseAdapter.php
parent33b2284955a8f0015922d4c69c5082141b584f27 (diff)
Fixed #433, #384, #439, #477, #435, #422, #401, #359. Add more class docs for sqlmap.
Diffstat (limited to 'framework/Web/THttpResponseAdapter.php')
-rw-r--r--framework/Web/THttpResponseAdapter.php19
1 files changed, 14 insertions, 5 deletions
diff --git a/framework/Web/THttpResponseAdapter.php b/framework/Web/THttpResponseAdapter.php
index beb585d4..8a1c86bb 100644
--- a/framework/Web/THttpResponseAdapter.php
+++ b/framework/Web/THttpResponseAdapter.php
@@ -12,7 +12,7 @@
/**
* THttpResponseAdapter class.
- *
+ *
* THttpResponseAdapter allows the base http response class to change behaviour
* without change the class hierachy.
*
@@ -27,7 +27,7 @@ class THttpResponseAdapter extends TApplicationComponent
* @var THttpResponse the response object the adapter is attached.
*/
private $_response;
-
+
/**
* Constructor. Attach a response to be adapted.
* @param THttpResponse the response object the adapter is to attach to.
@@ -36,7 +36,7 @@ class THttpResponseAdapter extends TApplicationComponent
{
$this->_response=$response;
}
-
+
/**
* @return THttpResponse the response object adapted.
*/
@@ -44,7 +44,7 @@ class THttpResponseAdapter extends TApplicationComponent
{
return $this->_response;
}
-
+
/**
* This method is invoked when the response flushes the content and headers.
* Default implementation calls the attached response flushContent method.
@@ -53,7 +53,16 @@ class THttpResponseAdapter extends TApplicationComponent
{
$this->_response->flushContent();
}
-
+
+ /**
+ * This method is invoked when the response is to redirect to another page.
+ * @param string new url to redirect to.
+ */
+ public function httpRedirect($url)
+ {
+ $this->_response->httpRedirect($url);
+ }
+
/**
* This method is invoked when a new HtmlWriter needs to be created.
* Default implementation calls the attached response createNewHtmlWriter method.