From ae1c1995b2fec431afe7cca23b2697e1bef17baf Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 17 Feb 2006 04:28:06 +0000 Subject: moved shortcut methods from TComponent to TControl. --- framework/Web/THttpRequest.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'framework/Web/THttpRequest.php') diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php index a0fa50e4..201addd1 100644 --- a/framework/Web/THttpRequest.php +++ b/framework/Web/THttpRequest.php @@ -533,6 +533,22 @@ class THttpRequest extends TMap implements IModule { $this->_serviceParam=$value; } + + /** + * @return THttpResponse response module + */ + public function getResponse() + { + return Prado::getApplication()->getResponse(); + } + + /** + * @return TApplication application instance + */ + public function getApplication() + { + return Prado::getApplication(); + } } /** @@ -558,7 +574,6 @@ class THttpCookieCollection extends TList */ public function __construct($owner=null) { - parent::__construct(); $this->_o=$owner; } @@ -643,7 +658,6 @@ class THttpCookie extends TComponent */ public function __construct($name,$value) { - parent::__construct(); $this->_name=$name; $this->_value=$value; } @@ -825,7 +839,6 @@ class TUri extends TComponent */ public function __construct($uri) { - parent::__construct(); if(($ret=@parse_url($uri))!==false) { // decoding??? -- cgit v1.2.3