static function parse($url, $isPhysical = null) { if ($isPhysical === null) { $isPhysical = false; } $u = new ufront_web_url_VirtualUrl($isPhysical); ufront_web_url_VirtualUrl::feed($u, $url); return $u; }
public function generateUri($uri, $isPhysical = null) { if ($isPhysical === null) { $isPhysical = false; } $uriOut = ufront_web_url_VirtualUrl::parse($uri, $isPhysical); $i = $this->urlFilters->length - 1; while ($i >= 0) { _hx_array_get($this->urlFilters, $i--)->filterOut($uriOut); } return $uriOut->toString(); }