1 | <?php |
||
20 | class SaveHandlerProxy implements SessionHandlerInterface |
||
21 | { |
||
22 | /** |
||
23 | * @var SessionHandlerInterface |
||
24 | */ |
||
25 | protected $handler; |
||
26 | |||
27 | /** |
||
28 | * Constructor. |
||
29 | * |
||
30 | * @param SessionHandlerInterface $handler |
||
31 | */ |
||
32 | public function __construct(SessionHandlerInterface $handler) |
||
36 | |||
37 | /** |
||
38 | * Get session save handler. |
||
39 | * |
||
40 | * @return SessionHandlerInterface |
||
41 | */ |
||
42 | public function getSaveHandler() |
||
46 | |||
47 | /** |
||
48 | * Set session save handler. |
||
49 | * |
||
50 | * @param SessionHandlerInterface $handler |
||
51 | */ |
||
52 | public function setSaveHandler(SessionHandlerInterface $handler) |
||
57 | |||
58 | /** |
||
59 | * Check if session has been started. |
||
60 | * |
||
61 | * @return bool |
||
62 | */ |
||
63 | public function isActive() |
||
67 | |||
68 | /** |
||
69 | * Get session id. |
||
70 | * |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getId() |
||
77 | |||
78 | /** |
||
79 | * Set session id. |
||
80 | * |
||
81 | * @param string $id |
||
82 | * |
||
83 | * @return $this |
||
84 | */ |
||
85 | public function setId($id) |
||
95 | |||
96 | /** |
||
97 | * Get session name. |
||
98 | * |
||
99 | * @return string |
||
100 | */ |
||
101 | public function getName() |
||
105 | |||
106 | /** |
||
107 | * Set session name. |
||
108 | * |
||
109 | * @param string $name |
||
110 | * |
||
111 | * @return $this |
||
112 | */ |
||
113 | public function setName($name) |
||
123 | |||
124 | /** |
||
125 | * {@inheritdoc} |
||
126 | */ |
||
127 | public function close() |
||
131 | |||
132 | /** |
||
133 | * {@inheritdoc} |
||
134 | */ |
||
135 | public function destroy($sessionId) |
||
139 | |||
140 | /** |
||
141 | * {@inheritdoc} |
||
142 | */ |
||
143 | public function gc($maxLifeTime) |
||
147 | |||
148 | /** |
||
149 | * {@inheritdoc} |
||
150 | */ |
||
151 | public function open($savePath, $sessionId) |
||
155 | |||
156 | /** |
||
157 | * {@inheritdoc} |
||
158 | */ |
||
159 | public function read($sessionId) |
||
163 | |||
164 | /** |
||
165 | * {@inheritdoc} |
||
166 | */ |
||
167 | public function write($sessionId, $sessionData) |
||
171 | } |
||
172 |