Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
kernelsessionproxy.php
1<?php
2
3namespace Bitrix\Main\Session;
4
6{
8 protected $session;
9
10 public function __construct(Session $session)
11 {
12 $this->session = $session;
13 }
14
15 public function isActive(): bool
16 {
17 return $this->session->isActive();
18 }
19
20 public function isAccessible(): bool
21 {
22 return $this->session->isAccessible();
23 }
24
25 public function getId(): string
26 {
27 return $this->session->getId();
28 }
29
30 public function setId($id)
31 {
32 $this->session->setId($id);
33 }
34
35 public function getName(): string
36 {
37 return $this->session->getName();
38 }
39
40 public function setName($name)
41 {
42 $this->session->setName($name);
43 }
44
45 public function start(): bool
46 {
47 return $this->session->start();
48 }
49
50 public function regenerateId(): bool
51 {
52 return $this->session->regenerateId();
53 }
54
55 public function destroy()
56 {
57 $this->session->destroy();
58 }
59
60 public function save()
61 {
62 $this->session->save();
63 }
64
65 public function has($name)
66 {
67 return $this->session->has($name);
68 }
69
70 public function &get($name)
71 {
72 return $this->session->get($name);
73 }
74
75 public function set($name, $value)
76 {
77 $this->session->set($name, $value);
78 }
79
80 public function remove($name)
81 {
82 $this->session->remove($name);
83 }
84
85 public function delete($name)
86 {
87 $this->session->remove($name);
88 }
89
90 public function clear()
91 {
92 $this->session->clear();
93 }
94
95 public function isStarted()
96 {
97 return $this->session->isStarted();
98 }
99
100 public function offsetExists($offset): bool
101 {
102 return $this->session->offsetExists($offset);
103 }
104
105 public function offsetSet($offset, $value): void
106 {
107 $this->session->offsetSet($offset, $value);
108 }
109}