Esempio n. 1
0
 function uriVersioned_make()
 {
     $uri = so_uri::makeInstance();
     $uri->path = strtr($this->relate(getcwd()), array('%' => urlencode('%')));
     $uri->queryString = $this->version;
     return $uri->primary();
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
 function uri_make()
 {
     $uri = so_uri::makeInstance();
     $uri->path = strtr($this->relate(so_front::make()->dir), array('%' => urlencode('%')));
     return $uri->primary();
 }
Esempio n. 4
0
 function uri_make()
 {
     return so_uri::makeInstance()->query($this)->primary();
 }