static function feed($u, $url) { ufront_web_url_PartialUrl::feed($u, $url); if ($u->segments[0] === "~") { $u->segments->shift(); if ($u->segments->length === 1 && $u->segments[0] === "") { $u->segments->pop(); } $u->isPhysical = true; } }
static function parse($url) { $u = new ufront_web_url_PartialUrl(); ufront_web_url_PartialUrl::feed($u, $url); return $u; }
public function getRequestUri() { if (null === $this->_requestUri) { $url = ufront_web_url_PartialUrl::parse($this->request->get_uri()); $_g = 0; $_g1 = $this->urlFilters; while ($_g < $_g1->length) { $filter = $_g1[$_g]; ++$_g; $filter->filterIn($url); unset($filter); } $this->_requestUri = $url->toString(); } return $this->_requestUri; }