1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
server.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Calendar\Sync\Connection;
4
5
class
Server
implements
ServerInterface
6
{
7
private
const
SCHEME_SEPARATOR =
'://'
;
8
private
const
PORT_SEPARATOR =
':'
;
9
// public const DEFAULT_PORT = 443;
10
14
protected
$scheme
;
18
protected
$host
;
22
protected
$port
;
26
protected
$basePath
;
30
protected
$userName
;
34
protected
$password
;
35
36
public
function
__construct
(
$data
)
37
{
38
$this->scheme =
$data
[
'SERVER_SCHEME'
];
39
$this->host =
$data
[
'SERVER_HOST'
];
40
$this->port =
$data
[
'SERVER_PORT'
];
41
$this->basePath =
$data
[
'SERVER_PATH'
];
42
$this->userName =
$data
[
'SERVER_USERNAME'
];
43
$this->password =
$data
[
'SERVER_PASSWORD'
];
44
}
45
46
public
function
getHost
(): string
47
{
48
return
$this->host
;
49
}
50
51
public
function
getScheme
(): string
52
{
53
return
$this->scheme;
54
}
55
56
public
function
getPort
(): string
57
{
58
return
$this->port;
59
}
60
61
public
function
getBasePath
(): string
62
{
63
return
$this->basePath
;
64
}
65
66
public
function
getUserName
(): ?string
67
{
68
return
$this->userName
;
69
}
70
71
public
function
getPassword
(): ?string
72
{
73
return
$this->password
;
74
}
75
76
public
function
setPassword
(
$password
):
Server
77
{
78
$this->password =
$password
;
79
80
return
$this;
81
}
82
83
public
function
getFullPath
(): string
84
{
85
return
$this->
getScheme
()
86
. self::SCHEME_SEPARATOR
87
. $this->
getHost
()
88
. self::PORT_SEPARATOR
89
. $this->
getPort
()
90
. $this->
getBasePath
()
91
;
92
}
93
99
public
static
function
getEncodePath
(
string
$path
): string
100
{
101
return
urlencode(
$path
);
102
}
103
109
public
static
function
mapUri
(
string
$uri
,
array
$map
): string
110
{
111
return
str_replace(array_keys(
$map
),
$map
,
$uri
);
112
}
113
}
$path
$path
Определения
access_edit.php:21
$basePath
$basePath
Определения
include.php:41
Bitrix\Calendar\Sync\Connection\Server\getPassword
getPassword()
Определения
server.php:71
Bitrix\Calendar\Sync\Connection\Server\$scheme
$scheme
Определения
server.php:14
Bitrix\Calendar\Sync\Connection\Server\getHost
getHost()
Определения
server.php:46
Bitrix\Calendar\Sync\Connection\Server\setPassword
setPassword($password)
Определения
server.php:76
Bitrix\Calendar\Sync\Connection\Server\$password
$password
Определения
server.php:34
Bitrix\Calendar\Sync\Connection\Server\getEncodePath
static getEncodePath(string $path)
Определения
server.php:99
Bitrix\Calendar\Sync\Connection\Server\$host
$host
Определения
server.php:18
Bitrix\Calendar\Sync\Connection\Server\getScheme
getScheme()
Определения
server.php:51
Bitrix\Calendar\Sync\Connection\Server\$basePath
$basePath
Определения
server.php:26
Bitrix\Calendar\Sync\Connection\Server\$port
$port
Определения
server.php:22
Bitrix\Calendar\Sync\Connection\Server\getBasePath
getBasePath()
Определения
server.php:61
Bitrix\Calendar\Sync\Connection\Server\getUserName
getUserName()
Определения
server.php:66
Bitrix\Calendar\Sync\Connection\Server\__construct
__construct($data)
Определения
server.php:36
Bitrix\Calendar\Sync\Connection\Server\getFullPath
getFullPath()
Определения
server.php:83
Bitrix\Calendar\Sync\Connection\Server\mapUri
static mapUri(string $uri, array $map)
Определения
server.php:109
Bitrix\Calendar\Sync\Connection\Server\getPort
getPort()
Определения
server.php:56
Bitrix\Calendar\Sync\Connection\Server\$userName
$userName
Определения
server.php:30
Bitrix\Main\Server
Определения
server.php:11
$data
$data['IS_AVAILABLE']
Определения
.description.php:13
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Calendar\Sync\Connection\ServerInterface
Определения
serverinterface.php:5
$uri
if(file_exists($_SERVER['DOCUMENT_ROOT'] . "/urlrewrite.php")) $uri
Определения
urlrewrite.php:61
$map
$map
Определения
config.php:5
Bitrix\Main\$password
$password
Определения
mysql_to_pgsql.php:34
Bitrix\Main\$host
$host
Определения
mysql_to_pgsql.php:32
$userName
else $userName
Определения
order_form.php:75
bitrix
modules
calendar
lib
sync
connection
server.php
Создано системой
1.14.0