diff options
author | xue <> | 2006-02-17 18:45:49 +0000 |
---|---|---|
committer | xue <> | 2006-02-17 18:45:49 +0000 |
commit | 54598910eaa729dd2b9a936efc03b1c5b85b4954 (patch) | |
tree | 1eaa2ff06a078550446b77f0854c4e5542811071 /framework/Web/THttpRequest.php | |
parent | 129a7de7813aa331acbaee031141563e0cecc3b1 (diff) |
Changed a few application API names.
Diffstat (limited to 'framework/Web/THttpRequest.php')
-rw-r--r-- | framework/Web/THttpRequest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php index 2ee7cd5f..029fb240 100644 --- a/framework/Web/THttpRequest.php +++ b/framework/Web/THttpRequest.php @@ -270,7 +270,7 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar /**
* @return string entry script URL (w/o host part)
*/
- public function getApplicationPath()
+ public function getApplicationUrl()
{
return $_SERVER['SCRIPT_NAME'];
}
@@ -278,7 +278,7 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar /**
* @return string application entry script file path (processed w/ realpath())
*/
- public function getPhysicalApplicationPath()
+ public function getApplicationFilePath()
{
return realpath($_SERVER['SCRIPT_FILENAME']);
}
@@ -452,13 +452,13 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar $url=strtr($url,array($amp=>'/','?'=>'/','='=>'/'));
if(defined('SID') && SID != '')
$url.='?'.SID;
- return $this->getApplicationPath().'/'.$url;
+ return $this->getApplicationUrl().'/'.$url;
}
else
{
if(defined('SID') && SID != '')
$url.=$amp.SID;
- return $this->getApplicationPath().'?'.$url;
+ return $this->getApplicationUrl().'?'.$url;
}
}
|