Lines Matching refs:this

68             $this->parseUri($uri);
89 $this->scheme = $uriParts['scheme'];
90 $this->host = $uriParts['host'];
93 $this->port = $uriParts['port'];
94 $this->explicitPortSpecified = true;
96 $this->port = strcmp('https', $uriParts['scheme']) ? 80 : 443;
97 $this->explicitPortSpecified = false;
101 $this->path = $uriParts['path'];
103 $this->explicitTrailingHostSlash = true;
106 $this->path = '/';
109 $this->query = isset($uriParts['query']) ? $uriParts['query'] : '';
110 $this->fragment = isset($uriParts['fragment']) ? $uriParts['fragment'] : '';
120 $this->setUserInfo($userInfo);
149 return $this->scheme;
157 return $this->userInfo;
165 return $this->rawUserInfo;
173 return $this->host;
181 return $this->port;
189 return $this->path;
197 return $this->query;
205 return $this->fragment;
216 $authority = $this->userInfo ? $this->userInfo.'@' : '';
217 $authority .= $this->host;
219 if ($this->explicitPortSpecified) {
220 $authority .= ":{$this->port}";
231 $authority = $this->rawUserInfo ? $this->rawUserInfo.'@' : '';
232 $authority .= $this->host;
234 if ($this->explicitPortSpecified) {
235 $authority .= ":{$this->port}";
246 $uri = $this->scheme . '://' . $this->getRawAuthority();
248 if ('/' === $this->path) {
249 $uri .= $this->explicitTrailingHostSlash ? '/' : '';
251 $uri .= $this->path;
254 if (!empty($this->query)) {
255 $uri .= "?{$this->query}";
258 if (!empty($this->fragment)) {
259 $uri .= "#{$this->fragment}";
272 if ('/' === $this->path) {
273 $uri .= $this->explicitTrailingHostSlash ? '/' : '';
275 $uri .= $this->path;
289 $uri = $this->scheme . '://' . $this->getAuthority();
291 if ('/' === $this->path) {
292 $uri .= $this->explicitTrailingHostSlash ? '/' : '';
294 $uri .= $this->path;
297 if (!empty($this->query)) {
298 $uri .= "?{$this->query}";
301 if (!empty($this->fragment)) {
302 $uri .= "#{$this->fragment}";
314 $this->path = '/';
315 $this->explicitTrailingHostSlash = false;
317 $this->path = $path;
318 if ('/' === $this->path) {
319 $this->explicitTrailingHostSlash = true;
329 $this->query = $query;
338 if (strlen($this->query) > 0) {
339 $this->query .= '&';
341 $this->query .= http_build_query(array($var => $val), '', '&');
349 $this->fragment = $fragment;
357 $this->scheme = $scheme;
366 $this->userInfo = $userInfo ? $this->protectUserInfo($userInfo) : '';
367 $this->rawUserInfo = $userInfo;
376 $this->port = intval($port);
378 if (('https' === $this->scheme && $this->port === 443) || ('http' === $this->scheme && $this->port === 80)) {
379 $this->explicitPortSpecified = false;
381 $this->explicitPortSpecified = true;
390 $this->host = $host;
398 return $this->explicitTrailingHostSlash;
406 return $this->explicitPortSpecified;