1 | <?php |
||
38 | class Internal extends Session { |
||
39 | /** |
||
40 | * @param string $name |
||
41 | * @throws \Exception |
||
42 | */ |
||
43 | public function __construct($name) { |
||
56 | |||
57 | /** |
||
58 | * @param string $key |
||
59 | * @param integer $value |
||
60 | */ |
||
61 | public function set($key, $value) { |
||
65 | |||
66 | /** |
||
67 | * @param string $key |
||
68 | * @return mixed |
||
69 | */ |
||
70 | public function get($key) { |
||
76 | |||
77 | /** |
||
78 | * @param string $key |
||
79 | * @return bool |
||
80 | */ |
||
81 | public function exists($key) { |
||
84 | |||
85 | /** |
||
86 | * @param string $key |
||
87 | */ |
||
88 | public function remove($key) { |
||
93 | |||
94 | public function clear() { |
||
100 | |||
101 | public function close() { |
||
105 | |||
106 | /** |
||
107 | * Wrapper around session_regenerate_id |
||
108 | * |
||
109 | * @param bool $deleteOldSession Whether to delete the old associated session file or not. |
||
110 | * @return void |
||
111 | */ |
||
112 | public function regenerateId($deleteOldSession = true) { |
||
115 | |||
116 | /** |
||
117 | * Wrapper around session_id |
||
118 | * |
||
119 | * @return string |
||
120 | * @throws SessionNotAvailableException |
||
121 | * @since 9.1.0 |
||
122 | */ |
||
123 | public function getId() { |
||
130 | |||
131 | /** |
||
132 | * @throws \Exception |
||
133 | */ |
||
134 | public function reopen() { |
||
137 | |||
138 | /** |
||
139 | * @param int $errorNumber |
||
140 | * @param string $errorString |
||
141 | * @throws \ErrorException |
||
142 | */ |
||
143 | public function trapError($errorNumber, $errorString) { |
||
146 | |||
147 | /** |
||
148 | * @throws \Exception |
||
149 | */ |
||
150 | private function validateSession() { |
||
155 | } |
||
156 |
If you suppress an error, we recommend checking for the error condition explicitly: