Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
cookie.php
1
<?php
2
10
namespace
Bitrix\Main\Web\Http
;
11
12
class
Cookie
13
{
14
public
const
SAME_SITE_NONE
=
'None'
;
15
public
const
SAME_SITE_LAX
=
'Lax'
;
16
public
const
SAME_SITE_STRICT
=
'Strict'
;
17
18
protected
$domain
;
19
protected
$expires
;
20
protected
$httpOnly
=
true
;
21
protected
$name
;
22
protected
$path
=
'/'
;
23
protected
$secure
=
false
;
24
protected
$value
;
25
protected
$sameSite
;
26
33
public
function
__construct
(
string
$name, ?
string
$value,
int
$expires = 0)
34
{
35
$this->name = $name;
36
$this->value = $value;
37
$this->expires =
$expires
;
38
}
39
40
public
function
setDomain
(
string
$domain):
Cookie
41
{
42
$this->domain = $domain;
43
return
$this;
44
}
45
46
public
function
getDomain
(): ?string
47
{
48
return
$this->domain;
49
}
50
51
public
function
setExpires
(
int
$expires):
Cookie
52
{
53
$this->expires = $expires;
54
return
$this;
55
}
56
57
public
function
getExpires
(): int
58
{
59
return
$this->expires;
60
}
61
62
public
function
setHttpOnly
(
bool
$httpOnly):
Cookie
63
{
64
$this->httpOnly = $httpOnly;
65
return
$this;
66
}
67
68
public
function
getHttpOnly
(): bool
69
{
70
return
$this->httpOnly;
71
}
72
73
public
function
setName
(
string
$name):
Cookie
74
{
75
$this->name = $name;
76
return
$this;
77
}
78
79
public
function
getName
(): string
80
{
81
return
$this->name;
82
}
83
84
public
function
setPath
(
string
$path):
Cookie
85
{
86
$this->path = $path;
87
return
$this;
88
}
89
90
public
function
getPath
(): string
91
{
92
return
$this->path;
93
}
94
95
public
function
setSecure
(
bool
$secure):
Cookie
96
{
97
$this->secure = $secure;
98
return
$this;
99
}
100
101
public
function
getSecure
(): bool
102
{
103
return
$this->secure;
104
}
105
106
public
function
setValue
(?
string
$value):
Cookie
107
{
108
$this->value = $value;
109
return
$this;
110
}
111
112
public
function
getValue
(): ?string
113
{
114
return
$this->value;
115
}
116
117
public
function
setSameSite
(?
string
$sameSite):
Cookie
118
{
119
$this->sameSite = $sameSite;
120
return
$this;
121
}
122
123
public
function
getSameSite
(): ?string
124
{
125
return
$this->sameSite;
126
}
127
}
Bitrix\Main\Web\Cookie
Definition
cookie.php:8
Bitrix\Main\Web\Http\Cookie\$path
$path
Definition
cookie.php:22
Bitrix\Main\Web\Http\Cookie\$value
$value
Definition
cookie.php:24
Bitrix\Main\Web\Http\Cookie\setHttpOnly
setHttpOnly(bool $httpOnly)
Definition
cookie.php:62
Bitrix\Main\Web\Http\Cookie\setSameSite
setSameSite(?string $sameSite)
Definition
cookie.php:117
Bitrix\Main\Web\Http\Cookie\setExpires
setExpires(int $expires)
Definition
cookie.php:51
Bitrix\Main\Web\Http\Cookie\__construct
__construct(string $name, ?string $value, int $expires=0)
Definition
cookie.php:33
Bitrix\Main\Web\Http\Cookie\getPath
getPath()
Definition
cookie.php:90
Bitrix\Main\Web\Http\Cookie\setName
setName(string $name)
Definition
cookie.php:73
Bitrix\Main\Web\Http\Cookie\$sameSite
$sameSite
Definition
cookie.php:25
Bitrix\Main\Web\Http\Cookie\getName
getName()
Definition
cookie.php:79
Bitrix\Main\Web\Http\Cookie\getSecure
getSecure()
Definition
cookie.php:101
Bitrix\Main\Web\Http\Cookie\getDomain
getDomain()
Definition
cookie.php:46
Bitrix\Main\Web\Http\Cookie\setPath
setPath(string $path)
Definition
cookie.php:84
Bitrix\Main\Web\Http\Cookie\setSecure
setSecure(bool $secure)
Definition
cookie.php:95
Bitrix\Main\Web\Http\Cookie\SAME_SITE_LAX
const SAME_SITE_LAX
Definition
cookie.php:15
Bitrix\Main\Web\Http\Cookie\$expires
$expires
Definition
cookie.php:19
Bitrix\Main\Web\Http\Cookie\SAME_SITE_NONE
const SAME_SITE_NONE
Definition
cookie.php:14
Bitrix\Main\Web\Http\Cookie\getHttpOnly
getHttpOnly()
Definition
cookie.php:68
Bitrix\Main\Web\Http\Cookie\$name
$name
Definition
cookie.php:21
Bitrix\Main\Web\Http\Cookie\getValue
getValue()
Definition
cookie.php:112
Bitrix\Main\Web\Http\Cookie\setValue
setValue(?string $value)
Definition
cookie.php:106
Bitrix\Main\Web\Http\Cookie\$httpOnly
$httpOnly
Definition
cookie.php:20
Bitrix\Main\Web\Http\Cookie\setDomain
setDomain(string $domain)
Definition
cookie.php:40
Bitrix\Main\Web\Http\Cookie\getExpires
getExpires()
Definition
cookie.php:57
Bitrix\Main\Web\Http\Cookie\SAME_SITE_STRICT
const SAME_SITE_STRICT
Definition
cookie.php:16
Bitrix\Main\Web\Http\Cookie\getSameSite
getSameSite()
Definition
cookie.php:123
Bitrix\Main\Web\Http\Cookie\$domain
$domain
Definition
cookie.php:18
Bitrix\Main\Web\Http\Cookie\$secure
$secure
Definition
cookie.php:23
Bitrix\Main\Web\Http
Definition
clientexception.php:3
modules
main
lib
web
http
cookie.php
Создано системой
1.10.0