1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
uri.php
См. документацию.
1<?php
2namespace Bitrix\Main\UserField;
3
5{
10 public function getUri()
11 {
12 if($this->user == '' && $this->host <> '')
13 {
14 return parent::getUri();
15 }
16
17 $url = "";
18 $url .= $this->scheme.':';
19
20 if($this->scheme !== 'callto' && $this->scheme !== 'mailto')
21 {
22 $url .= "//";
23 }
24
25 if($this->user <> '')
26 {
27 $url .= $this->user.':'.$this->pass.'@';
28 }
29
30 $url .= $this->getASCIIHost();
31
32 if(($this->scheme == "http" && $this->port <> 80) || ($this->scheme == "https" && $this->port <> 443))
33 {
34 $url .= ":".$this->port;
35 }
36
37 $url .= $this->getPathQuery();
38
39 if($this->fragment <> '')
40 {
41 $url .= "#".$this->fragment;
42 }
43
44 return $url;
45 }
46
47 public function getASCIIHost()
48 {
49 if($this->host <> '')
50 {
51 $asciiHost = \CBXPunycode::ToASCII($this->host, $a);
52 if($asciiHost)
53 {
54 return $asciiHost;
55 }
56 }
57
58 return $this->host;
59 }
60
61}
Определения uri.php:5
getUri()
Определения uri.php:10
getASCIIHost()
Определения uri.php:47
Определения uri.php:17
$host
Определения uri.php:19
getPathQuery()
Определения uri.php:189
static ToASCII($domainName, &$arErrors)
Определения punycode.php:44
else $a
Определения template.php:137
$url
Определения iframe.php:7