From 54598910eaa729dd2b9a936efc03b1c5b85b4954 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 17 Feb 2006 18:45:49 +0000 Subject: Changed a few application API names. --- framework/Web/THttpRequest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web/THttpRequest.php') 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; } } -- cgit v1.2.3