diff options
author | xue <> | 2006-02-17 04:28:06 +0000 |
---|---|---|
committer | xue <> | 2006-02-17 04:28:06 +0000 |
commit | ae1c1995b2fec431afe7cca23b2697e1bef17baf (patch) | |
tree | 43fb70539492615022e434435a70e35241a898f2 /framework/Web/THttpRequest.php | |
parent | 31807816360c93080a6a0da55b858d708cd85c8b (diff) |
moved shortcut methods from TComponent to TControl.
Diffstat (limited to 'framework/Web/THttpRequest.php')
-rw-r--r-- | framework/Web/THttpRequest.php | 19 |
1 files changed, 16 insertions, 3 deletions
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???
|