Changeset 943
- Timestamp:
- 05/27/08 00:19:16 (6 months ago)
- Files:
-
- branches/1.0.x/lib/jelix/core/jUrl.class.php (modified) (3 diffs)
- branches/1.0.x/lib/jelix/core/jUrl.class.php (modified) (3 diffs)
- branches/1.0.x/lib/jelix/core/jUrl.class.php (modified) (3 diffs)
- branches/1.0.x/lib/jelix/core/jUrl.class.php (modified) (3 diffs)
- branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php (modified) (1 diff)
- branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php (modified) (1 diff)
- branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php (modified) (1 diff)
- branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php (modified) (1 diff)
- branches/1.0.x/lib/jelix/plugins/tpl/html/function.formurl.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/tpl/html/function.formurl.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/tpl/html/function.formurl.php (modified) (2 diffs)
- branches/1.0.x/lib/jelix/plugins/tpl/html/function.formurl.php (modified) (2 diffs)
- trunk/lib/jelix/core/jUrl.class.php (modified) (3 diffs)
- trunk/lib/jelix/core/jUrl.class.php (modified) (3 diffs)
- trunk/lib/jelix/core/jUrl.class.php (modified) (3 diffs)
- trunk/lib/jelix/core/jUrl.class.php (modified) (3 diffs)
- trunk/lib/jelix/plugins/jforms/html/html.jformsbuilder.php (modified) (1 diff)
- trunk/lib/jelix/plugins/jforms/html/html.jformsbuilder.php (modified) (1 diff)
- trunk/lib/jelix/plugins/jforms/html/html.jformsbuilder.php (modified) (1 diff)
- trunk/lib/jelix/plugins/jforms/html/html.jformsbuilder.php (modified) (1 diff)
- trunk/lib/jelix/plugins/tpl/html/function.formurl.php (modified) (2 diffs)
- trunk/lib/jelix/plugins/tpl/html/function.formurl.php (modified) (2 diffs)
- trunk/lib/jelix/plugins/tpl/html/function.formurl.php (modified) (2 diffs)
- trunk/lib/jelix/plugins/tpl/html/function.formurl.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0.x/lib/jelix/core/jUrl.class.php
r941 r943 5 5 * @author Laurent Jouanneau 6 6 * @contributor Thibault PIRONT < nuKs > 7 * @copyright 2005-200 6Laurent Jouanneau7 * @copyright 2005-2008 Laurent Jouanneau 8 8 * @copyright 2007 Thibault PIRONT 9 9 * Some parts of this file are took from an experimental branch of the Copix project (CopixUrl.class.php, Copix 2.3dev20050901, http://www.copix.org), … … 206 206 */ 207 207 public function toString ($forxml = false){ 208 return $this->getPath().$this->getQuery($forxml); 209 } 210 211 /** 212 * get the path part of the url (scriptName + pathinfo) 213 * @return string 214 * @since 1.0.4 215 */ 216 public function getPath() { 208 217 $url = $this->scriptName; 209 218 if(substr($this->scriptName,-1) == '/') … … 211 220 else 212 221 $url.= $this->pathInfo; 213 222 return $url; 223 } 224 225 /** 226 * get the query part of the url 227 * @param boolean $forxml true: some characters will be escaped 228 * @return string 229 * @since 1.0.4 230 */ 231 public function getQuery($forxml = false) { 232 $url = ''; 214 233 if (count ($this->params)>0){ 215 234 $q = http_build_query($this->params, '', ($forxml?'&':'&')); branches/1.0.x/lib/jelix/core/jUrl.class.php
r941 r943 5 5 * @author Laurent Jouanneau 6 6 * @contributor Thibault PIRONT < nuKs > 7 * @copyright 2005-200 6Laurent Jouanneau7 * @copyright 2005-2008 Laurent Jouanneau 8 8 * @copyright 2007 Thibault PIRONT 9 9 * Some parts of this file are took from an experimental branch of the Copix project (CopixUrl.class.php, Copix 2.3dev20050901, http://www.copix.org), … … 206 206 */ 207 207 public function toString ($forxml = false){ 208 return $this->getPath().$this->getQuery($forxml); 209 } 210 211 /** 212 * get the path part of the url (scriptName + pathinfo) 213 * @return string 214 * @since 1.0.4 215 */ 216 public function getPath() { 208 217 $url = $this->scriptName; 209 218 if(substr($this->scriptName,-1) == '/') … … 211 220 else 212 221 $url.= $this->pathInfo; 213 222 return $url; 223 } 224 225 /** 226 * get the query part of the url 227 * @param boolean $forxml true: some characters will be escaped 228 * @return string 229 * @since 1.0.4 230 */ 231 public function getQuery($forxml = false) { 232 $url = ''; 214 233 if (count ($this->params)>0){ 215 234 $q = http_build_query($this->params, '', ($forxml?'&':'&')); branches/1.0.x/lib/jelix/core/jUrl.class.php
r941 r943 5 5 * @author Laurent Jouanneau 6 6 * @contributor Thibault PIRONT < nuKs > 7 * @copyright 2005-200 6Laurent Jouanneau7 * @copyright 2005-2008 Laurent Jouanneau 8 8 * @copyright 2007 Thibault PIRONT 9 9 * Some parts of this file are took from an experimental branch of the Copix project (CopixUrl.class.php, Copix 2.3dev20050901, http://www.copix.org), … … 206 206 */ 207 207 public function toString ($forxml = false){ 208 return $this->getPath().$this->getQuery($forxml); 209 } 210 211 /** 212 * get the path part of the url (scriptName + pathinfo) 213 * @return string 214 * @since 1.0.4 215 */ 216 public function getPath() { 208 217 $url = $this->scriptName; 209 218 if(substr($this->scriptName,-1) == '/') … … 211 220 else 212 221 $url.= $this->pathInfo; 213 222 return $url; 223 } 224 225 /** 226 * get the query part of the url 227 * @param boolean $forxml true: some characters will be escaped 228 * @return string 229 * @since 1.0.4 230 */ 231 public function getQuery($forxml = false) { 232 $url = ''; 214 233 if (count ($this->params)>0){ 215 234 $q = http_build_query($this->params, '', ($forxml?'&':'&')); branches/1.0.x/lib/jelix/core/jUrl.class.php
r941 r943 5 5 * @author Laurent Jouanneau 6 6 * @contributor Thibault PIRONT < nuKs > 7 * @copyright 2005-200 6Laurent Jouanneau7 * @copyright 2005-2008 Laurent Jouanneau 8 8 * @copyright 2007 Thibault PIRONT 9 9 * Some parts of this file are took from an experimental branch of the Copix project (CopixUrl.class.php, Copix 2.3dev20050901, http://www.copix.org), … … 206 206 */ 207 207 public function toString ($forxml = false){ 208 return $this->getPath().$this->getQuery($forxml); 209 } 210 211 /** 212 * get the path part of the url (scriptName + pathinfo) 213 * @return string 214 * @since 1.0.4 215 */ 216 public function getPath() { 208 217 $url = $this->scriptName; 209 218 if(substr($this->scriptName,-1) == '/') … … 211 220 else 212 221 $url.= $this->pathInfo; 213 222 return $url; 223 } 224 225 /** 226 * get the query part of the url 227 * @param boolean $forxml true: some characters will be escaped 228 * @return string 229 * @since 1.0.4 230 */ 231 public function getQuery($forxml = false) { 232 $url = ''; 214 233 if (count ($this->params)>0){ 215 234 $q = http_build_query($this->params, '', ($forxml?'&':'&')); branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php
r898 r943 111 111 public function outputHeader($params){ 112 112 $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 113 echo '<form action="',$url-> scriptName,$url->pathInfo,'" method="'.$params[2].'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"';113 echo '<form action="',$url->getPath(),'" method="'.$params[2].'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"'; 114 114 if($this->_form->hasUpload()) 115 115 echo ' enctype="multipart/form-data">'; branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php
r898 r943 111 111 public function outputHeader($params){ 112 112 $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 113 echo '<form action="',$url-> scriptName,$url->pathInfo,'" method="'.$params[2].'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"';113 echo '<form action="',$url->getPath(),'" method="'.$params[2].'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"'; 114 114 if($this->_form->hasUpload()) 115 115 echo ' enctype="multipart/form-data">'; branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php
r898 r943 111 111 public function outputHeader($params){ 112 112 $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 113 echo '<form action="',$url-> scriptName,$url->pathInfo,'" method="'.$params[2].'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"';113 echo '<form action="',$url->getPath(),'" method="'.$params[2].'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"'; 114 114 if($this->_form->hasUpload()) 115 115 echo ' enctype="multipart/form-data">'; branches/1.0.x/lib/jelix/forms/jFormsBuilderBase.class.php
r898 r943 111 111 public function outputHeader($params){ 112 112 $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 113 echo '<form action="',$url-> scriptName,$url->pathInfo,'" method="'.$params[2].'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"';113 echo '<form action="',$url->getPath(),'" method="'.$params[2].'" id="', $this->_name,'" onsubmit="return jForms.verifyForm(this)"'; 114 114 if($this->_form->hasUpload()) 115 115 echo ' enctype="multipart/form-data">'; branches/1.0.x/lib/jelix/plugins/tpl/html/function.formurl.php
r506 r943 3 3 * @package jelix 4 4 * @subpackage jtpl_plugin 5 * @version $Id$6 5 * @author Loic Mathaud 7 * @copyright 2005-2006 Loic Mathaud 6 * @contributor Laurent Jouanneau 7 * @copyright 2005-2006 Loic Mathaud, 2008 Laurent Jouanneau 8 8 * @link http://www.jelix.org 9 9 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 20 20 { 21 21 $url = jUrl::get($selector, $params, 2); // retourne le jurl correspondant 22 echo $url-> scriptName . $url->pathInfo;22 echo $url->getPath(); 23 23 } 24 24 branches/1.0.x/lib/jelix/plugins/tpl/html/function.formurl.php
r506 r943 3 3 * @package jelix 4 4 * @subpackage jtpl_plugin 5 * @version $Id$6 5 * @author Loic Mathaud 7 * @copyright 2005-2006 Loic Mathaud 6 * @contributor Laurent Jouanneau 7 * @copyright 2005-2006 Loic Mathaud, 2008 Laurent Jouanneau 8 8 * @link http://www.jelix.org 9 9 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 20 20 { 21 21 $url = jUrl::get($selector, $params, 2); // retourne le jurl correspondant 22 echo $url-> scriptName . $url->pathInfo;22 echo $url->getPath(); 23 23 } 24 24 branches/1.0.x/lib/jelix/plugins/tpl/html/function.formurl.php
r506 r943 3 3 * @package jelix 4 4 * @subpackage jtpl_plugin 5 * @version $Id$6 5 * @author Loic Mathaud 7 * @copyright 2005-2006 Loic Mathaud 6 * @contributor Laurent Jouanneau 7 * @copyright 2005-2006 Loic Mathaud, 2008 Laurent Jouanneau 8 8 * @link http://www.jelix.org 9 9 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 20 20 { 21 21 $url = jUrl::get($selector, $params, 2); // retourne le jurl correspondant 22 echo $url-> scriptName . $url->pathInfo;22 echo $url->getPath(); 23 23 } 24 24 branches/1.0.x/lib/jelix/plugins/tpl/html/function.formurl.php
r506 r943 3 3 * @package jelix 4 4 * @subpackage jtpl_plugin 5 * @version $Id$6 5 * @author Loic Mathaud 7 * @copyright 2005-2006 Loic Mathaud 6 * @contributor Laurent Jouanneau 7 * @copyright 2005-2006 Loic Mathaud, 2008 Laurent Jouanneau 8 8 * @link http://www.jelix.org 9 9 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 20 20 { 21 21 $url = jUrl::get($selector, $params, 2); // retourne le jurl correspondant 22 echo $url-> scriptName . $url->pathInfo;22 echo $url->getPath(); 23 23 } 24 24 trunk/lib/jelix/core/jUrl.class.php
r941 r943 5 5 * @author Laurent Jouanneau 6 6 * @contributor Thibault PIRONT < nuKs > 7 * @copyright 2005-200 6Laurent Jouanneau7 * @copyright 2005-2008 Laurent Jouanneau 8 8 * @copyright 2007 Thibault PIRONT 9 9 * Some parts of this file are took from an experimental branch of the Copix project (CopixUrl.class.php, Copix 2.3dev20050901, http://www.copix.org), … … 206 206 */ 207 207 public function toString ($forxml = false){ 208 return $this->getPath().$this->getQuery($forxml); 209 } 210 211 /** 212 * get the path part of the url (scriptName + pathinfo) 213 * @return string 214 * @since 1.0.4 215 */ 216 public function getPath() { 208 217 $url = $this->scriptName; 209 218 if(substr($this->scriptName,-1) == '/') … … 211 220 else 212 221 $url.= $this->pathInfo; 213 222 return $url; 223 } 224 225 /** 226 * get the query part of the url 227 * @param boolean $forxml true: some characters will be escaped 228 * @return string 229 * @since 1.0.4 230 */ 231 public function getQuery($forxml = false) { 232 $url = ''; 214 233 if (count ($this->params)>0){ 215 234 $q = http_build_query($this->params, '', ($forxml?'&':'&')); trunk/lib/jelix/core/jUrl.class.php
r941 r943 5 5 * @author Laurent Jouanneau 6 6 * @contributor Thibault PIRONT < nuKs > 7 * @copyright 2005-200 6Laurent Jouanneau7 * @copyright 2005-2008 Laurent Jouanneau 8 8 * @copyright 2007 Thibault PIRONT 9 9 * Some parts of this file are took from an experimental branch of the Copix project (CopixUrl.class.php, Copix 2.3dev20050901, http://www.copix.org), … … 206 206 */ 207 207 public function toString ($forxml = false){ 208 return $this->getPath().$this->getQuery($forxml); 209 } 210 211 /** 212 * get the path part of the url (scriptName + pathinfo) 213 * @return string 214 * @since 1.0.4 215 */ 216 public function getPath() { 208 217 $url = $this->scriptName; 209 218 if(substr($this->scriptName,-1) == '/') … … 211 220 else 212 221 $url.= $this->pathInfo; 213 222 return $url; 223 } 224 225 /** 226 * get the query part of the url 227 * @param boolean $forxml true: some characters will be escaped 228 * @return string 229 * @since 1.0.4 230 */ 231 public function getQuery($forxml = false) { 232 $url = ''; 214 233 if (count ($this->params)>0){ 215 234 $q = http_build_query($this->params, '', ($forxml?'&':'&')); trunk/lib/jelix/core/jUrl.class.php
r941 r943 5 5 * @author Laurent Jouanneau 6 6 * @contributor Thibault PIRONT < nuKs > 7 * @copyright 2005-200 6Laurent Jouanneau7 * @copyright 2005-2008 Laurent Jouanneau 8 8 * @copyright 2007 Thibault PIRONT 9 9 * Some parts of this file are took from an experimental branch of the Copix project (CopixUrl.class.php, Copix 2.3dev20050901, http://www.copix.org), … … 206 206 */ 207 207 public function toString ($forxml = false){ 208 return $this->getPath().$this->getQuery($forxml); 209 } 210 211 /** 212 * get the path part of the url (scriptName + pathinfo) 213 * @return string 214 * @since 1.0.4 215 */ 216 public function getPath() { 208 217 $url = $this->scriptName; 209 218 if(substr($this->scriptName,-1) == '/') … … 211 220 else 212 221 $url.= $this->pathInfo; 213 222 return $url; 223 } 224 225 /** 226 * get the query part of the url 227 * @param boolean $forxml true: some characters will be escaped 228 * @return string 229 * @since 1.0.4 230 */ 231 public function getQuery($forxml = false) { 232 $url = ''; 214 233 if (count ($this->params)>0){ 215 234 $q = http_build_query($this->params, '', ($forxml?'&':'&')); trunk/lib/jelix/core/jUrl.class.php
r941 r943 5 5 * @author Laurent Jouanneau 6 6 * @contributor Thibault PIRONT < nuKs > 7 * @copyright 2005-200 6Laurent Jouanneau7 * @copyright 2005-2008 Laurent Jouanneau 8 8 * @copyright 2007 Thibault PIRONT 9 9 * Some parts of this file are took from an experimental branch of the Copix project (CopixUrl.class.php, Copix 2.3dev20050901, http://www.copix.org), … … 206 206 */ 207 207 public function toString ($forxml = false){ 208 return $this->getPath().$this->getQuery($forxml); 209 } 210 211 /** 212 * get the path part of the url (scriptName + pathinfo) 213 * @return string 214 * @since 1.0.4 215 */ 216 public function getPath() { 208 217 $url = $this->scriptName; 209 218 if(substr($this->scriptName,-1) == '/') … … 211 220 else 212 221 $url.= $this->pathInfo; 213 222 return $url; 223 } 224 225 /** 226 * get the query part of the url 227 * @param boolean $forxml true: some characters will be escaped 228 * @return string 229 * @since 1.0.4 230 */ 231 public function getQuery($forxml = false) { 232 $url = ''; 214 233 if (count ($this->params)>0){ 215 234 $q = http_build_query($this->params, '', ($forxml?'&':'&')); trunk/lib/jelix/plugins/jforms/html/html.jformsbuilder.php
r924 r943 82 82 public function outputHeader($params){ 83 83 $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 84 echo '<form action="',$url-> scriptName,$url->pathInfo,'" method="'.$params[2].'" id="', $this->_name,'"';84 echo '<form action="',$url->getPath(),'" method="'.$params[2].'" id="', $this->_name,'"'; 85 85 if($this->_form->hasUpload()) 86 86 echo ' enctype="multipart/form-data">'; trunk/lib/jelix/plugins/jforms/html/html.jformsbuilder.php
r924 r943 82 82 public function outputHeader($params){ 83 83 $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 84 echo '<form action="',$url-> scriptName,$url->pathInfo,'" method="'.$params[2].'" id="', $this->_name,'"';84 echo '<form action="',$url->getPath(),'" method="'.$params[2].'" id="', $this->_name,'"'; 85 85 if($this->_form->hasUpload()) 86 86 echo ' enctype="multipart/form-data">'; trunk/lib/jelix/plugins/jforms/html/html.jformsbuilder.php
r924 r943 82 82 public function outputHeader($params){ 83 83 $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 84 echo '<form action="',$url-> scriptName,$url->pathInfo,'" method="'.$params[2].'" id="', $this->_name,'"';84 echo '<form action="',$url->getPath(),'" method="'.$params[2].'" id="', $this->_name,'"'; 85 85 if($this->_form->hasUpload()) 86 86 echo ' enctype="multipart/form-data">'; trunk/lib/jelix/plugins/jforms/html/html.jformsbuilder.php
r924 r943 82 82 public function outputHeader($params){ 83 83 $url = jUrl::get($this->_action, $this->_actionParams, 2); // retourne le jurl correspondant 84 echo '<form action="',$url-> scriptName,$url->pathInfo,'" method="'.$params[2].'" id="', $this->_name,'"';84 echo '<form action="',$url->getPath(),'" method="'.$params[2].'" id="', $this->_name,'"'; 85 85 if($this->_form->hasUpload()) 86 86 echo ' enctype="multipart/form-data">'; trunk/lib/jelix/plugins/tpl/html/function.formurl.php
r506 r943 3 3 * @package jelix 4 4 * @subpackage jtpl_plugin 5 * @version $Id$6 5 * @author Loic Mathaud 7 * @copyright 2005-2006 Loic Mathaud 6 * @contributor Laurent Jouanneau 7 * @copyright 2005-2006 Loic Mathaud, 2008 Laurent Jouanneau 8 8 * @link http://www.jelix.org 9 9 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 20 20 { 21 21 $url = jUrl::get($selector, $params, 2); // retourne le jurl correspondant 22 echo $url-> scriptName . $url->pathInfo;22 echo $url->getPath(); 23 23 } 24 24 trunk/lib/jelix/plugins/tpl/html/function.formurl.php
r506 r943 3 3 * @package jelix 4 4 * @subpackage jtpl_plugin 5 * @version $Id$6 5 * @author Loic Mathaud 7 * @copyright 2005-2006 Loic Mathaud 6 * @contributor Laurent Jouanneau 7 * @copyright 2005-2006 Loic Mathaud, 2008 Laurent Jouanneau 8 8 * @link http://www.jelix.org 9 9 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 20 20 { 21 21 $url = jUrl::get($selector, $params, 2); // retourne le jurl correspondant 22 echo $url-> scriptName . $url->pathInfo;22 echo $url->getPath(); 23 23 } 24 24 trunk/lib/jelix/plugins/tpl/html/function.formurl.php
r506 r943 3 3 * @package jelix 4 4 * @subpackage jtpl_plugin 5 * @version $Id$6 5 * @author Loic Mathaud 7 * @copyright 2005-2006 Loic Mathaud 6 * @contributor Laurent Jouanneau 7 * @copyright 2005-2006 Loic Mathaud, 2008 Laurent Jouanneau 8 8 * @link http://www.jelix.org 9 9 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 20 20 { 21 21 $url = jUrl::get($selector, $params, 2); // retourne le jurl correspondant 22 echo $url-> scriptName . $url->pathInfo;22 echo $url->getPath(); 23 23 } 24 24 trunk/lib/jelix/plugins/tpl/html/function.formurl.php
r506 r943 3 3 * @package jelix 4 4 * @subpackage jtpl_plugin 5 * @version $Id$6 5 * @author Loic Mathaud 7 * @copyright 2005-2006 Loic Mathaud 6 * @contributor Laurent Jouanneau 7 * @copyright 2005-2006 Loic Mathaud, 2008 Laurent Jouanneau 8 8 * @link http://www.jelix.org 9 9 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 20 20 { 21 21 $url = jUrl::get($selector, $params, 2); // retourne le jurl correspondant 22 echo $url-> scriptName . $url->pathInfo;22 echo $url->getPath(); 23 23 } 24 24
