public function getUrl() {
		
		$sefParams = array();
		$cgiParams = array();
		
		// queue all parameters
		foreach ($this->vars as $key=>$val) {
			if (is_int($key)) {
				$sefParams[] = $val;
			} else {
				$cgiParams[$key] = $val;
			}
		}

		$url = $this->module . '/' . $this->action;
		
		// add slashed params
		if (count($sefParams)) {
			$url .= '/' . implode('/', $sefParams);
		}

		// add ordering
		if ($this->order) {
			$url .= '/order-' . $this->order;
		}
		
		// add pagination
		if ($this->page) {
			$url .= '/page-' . $this->getPage();
		}
		
		// add associative params
		if (count($cgiParams)) {
			$url .= '?' . http_build_query($cgiParams);
		}

		return $url;
		
	}
public function getUrl() {
		
		$sefParams = array();
		$cgiParams = array();
		
		// queue all parameters
		foreach ($this->vars as $key=>$val) {
			if (is_int($key)) {
				$sefParams[] = $val;
			} else {
				$cgiParams[$key] = $val;
			}
		}

		$url = $this->module . '/' . $this->action;
		
		// add slashed params
		if (count($sefParams)) {
			$url .= '/' . implode('/', $sefParams);
		}

		// add ordering
		if ($this->order) {
			$url .= '/order-' . $this->order;
		}
		
		// add pagination
		if ($this->page) {
			$url .= '/page-' . $this->getPage();
		}
		
		// add associative params
		if (count($cgiParams)) {
			$url .= '?' . http_build_query($cgiParams);
		}

		return $url;
		
	}
public function getUrl ( ) { $ sefParams = array ( ) ; $ cgiParams = array ( ) ; // queue all parameters foreach ( $ this -> vars as $ key => $ val ) { if ( is_int ( $ key ) ) { $ sefParams [ ] = $ val ; } else { $ cgiParams [ $ key ] = $ val ; } } $ url = $ this -> module . '/' . $ this -> action ; // add slashed params if ( count ( $ sefParams ) ) { $ url .= '/' . implode ( '/' , $ sefParams ) ; } // add ordering if ( $ this -> order ) { $ url .= '/order-' . $ this -> order ; } // add pagination if ( $ this -> page ) { $ url .= '/page-' . $ this -> getPage ( ) ; } // add associative params if ( count ( $ cgiParams ) ) { $ url .= '?' . http_build_query ( $ cgiParams ) ; } return $ url ; }
Returns current relative URL, with order and optional pagination.

@return	string
Returns current relative URL with order and optional pagination .