diff options
author | xue <> | 2005-12-12 02:42:10 +0000 |
---|---|---|
committer | xue <> | 2005-12-12 02:42:10 +0000 |
commit | 2c84645d5e0df37560d61dfab99d04345f7ba9b6 (patch) | |
tree | 24f33ce52e7c3de8184d83d69a3cdec34daff62c /framework/Web/THttpRequest.php | |
parent | a7107dbd87aa92462a7348c1e73cd73da42cf4d8 (diff) |
getServerVariables, getEnvironmentVariables, getUploadedFiles now return an array instead of TMap.
Diffstat (limited to 'framework/Web/THttpRequest.php')
-rw-r--r-- | framework/Web/THttpRequest.php | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php index 0c21a020..938e56a3 100644 --- a/framework/Web/THttpRequest.php +++ b/framework/Web/THttpRequest.php @@ -302,33 +302,27 @@ class THttpRequest extends TModule }
/**
- * @return TMap list of uploaded files.
+ * @return array list of uploaded files.
*/
public function getUploadedFiles()
{
- if($this->_files===null)
- $this->_files=new TMap($_FILES);
- return $this->_files;
+ return $_FILES;
}
/**
- * @return TMap list of server variables.
+ * @return array list of server variables.
*/
public function getServerVariables()
{
- if($this->_server===null)
- $this->_server=new TMap($_SERVER);
- return $this->_server;
+ return $_SERVER;
}
/**
- * @return TMap list of environment variables.
+ * @return array list of environment variables.
*/
public function getEnvironmentVariables()
{
- if($this->_env===null)
- $this->_env=new TMap($_ENV);
- return $this->_env;
+ return $_ENV;
}
/**
|