Exemplo n.º 1
0
 /**
  * 現在のURLを取得する
  *
  * @return URL
  */
 public function requestUri()
 {
     static $url = null;
     if ($url === null) {
         $url = URL::createUrl($this['hostname'], $this['request_uri'], $this['port'], $this['is_https']);
     }
     return $url;
 }
Exemplo n.º 2
0
Arquivo: URL.php Projeto: hossy78/nora
 static function createURL($host, $path, $port = 80, $isHttps = false)
 {
     $url = new URL();
     $url->setHost($host);
     $url->setPath($path);
     $url->setPort($port);
     $url->isHttps($isHttps);
     return $url;
 }