Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
nativesessionstorage.php
1
<?php
2
namespace
Bitrix\Main\Data\LocalStorage\Storage
;
3
4
use
Bitrix\Main\Session\SessionInterface
;
5
6
class
NativeSessionStorage
implements
StorageInterface
7
{
9
private
$session;
10
11
public
function
__construct
(
SessionInterface
$session)
12
{
13
$this->session = $session;
14
}
15
16
public
function
read
(
string
$key,
int
$ttl)
17
{
18
return
$this->session->get($key);
19
}
20
21
public
function
write
(
string
$key, $value,
int
$ttl)
22
{
23
$this->session->set($key, $value);
24
}
25
}
Bitrix\Main\Data\LocalStorage\Storage\NativeSessionStorage
Definition
nativesessionstorage.php:7
Bitrix\Main\Data\LocalStorage\Storage\NativeSessionStorage\read
read(string $key, int $ttl)
Definition
nativesessionstorage.php:16
Bitrix\Main\Data\LocalStorage\Storage\NativeSessionStorage\write
write(string $key, $value, int $ttl)
Definition
nativesessionstorage.php:21
Bitrix\Main\Data\LocalStorage\Storage\NativeSessionStorage\__construct
__construct(SessionInterface $session)
Definition
nativesessionstorage.php:11
Bitrix\Main\Data\LocalStorage\Storage\StorageInterface
Definition
storageinterface.php:5
Bitrix\Main\Session\SessionInterface
Definition
sessioninterface.php:6
Bitrix\Main\Data\LocalStorage\Storage
Definition
cacheengineinterface.php:2
modules
main
lib
data
localstorage
storage
nativesessionstorage.php
Создано системой
1.10.0