Exemple #1
0
 /**
  * Return the relative url with query parameters as a string
  *
  * @return  string
  */
 public function getRelativeUrl($separator = '&')
 {
     if ($this->params->isEmpty()) {
         return $this->path . $this->anchor;
     } else {
         return $this->path . '?' . $this->params->toString($separator) . $this->anchor;
     }
 }
Exemple #2
0
 public function getQueryString($separator = null)
 {
     return $this->params->toString($separator);
 }