function uriVersioned_make() { $uri = so_uri::makeInstance(); $uri->path = strtr($this->relate(getcwd()), array('%' => urlencode('%'))); $uri->queryString = $this->version; return $uri->primary(); }
function go($rel) { so_uri::ensure($rel); $target = so_uri::makeInstance(); $target->scheme = $rel->scheme ?: $this->scheme; $target->login = $rel->login ?: $this->login; $target->password = $rel->password ?: $this->password; $target->host = $rel->host ?: $this->host; $target->port = $rel->port ?: $this->port; $target->path = $rel->path ?: $this->path; // TODO: resolve relative path $target->queryString = $rel->queryString ?: $this->queryString; $target->anchor = $rel->anchor ?: $this->anchor; return $target->primary(); }
function uri_make() { $uri = so_uri::makeInstance(); $uri->path = strtr($this->relate(so_front::make()->dir), array('%' => urlencode('%'))); return $uri->primary(); }
function uri_make() { return so_uri::makeInstance()->query($this)->primary(); }