From 502ef5c173b2ca1220725d9814022102ea5dd749 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 23 Mar 2006 12:11:49 +0000 Subject: Added a new parameter to constructUrl() for encoding GET parameters. --- framework/Web/Services/TPageService.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'framework/Web/Services') diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php index 8d3ccca3..022c1286 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -452,11 +452,12 @@ class TPageService extends TService * @param string page path * @param array list of GET parameters, null if no GET parameters required * @param boolean whether to encode the ampersand in URL, defaults to false. + * @param boolean whether to encode the GET parameters (their names and values), defaults to true. * @return string URL for the page and GET parameters */ - public function constructUrl($pagePath,$getParams=null,$encodeAmpersand=false) + public function constructUrl($pagePath,$getParams=null,$encodeAmpersand=false,$encodeGetItems=true) { - return $this->getRequest()->constructUrl($this->_id,$pagePath,$getParams,$encodeAmpersand); + return $this->getRequest()->constructUrl($this->_id,$pagePath,$getParams,$encodeAmpersand,$encodeGetItems); } } -- cgit v1.2.3