reference/session/sessionhandlerinterface.xml
62126c55f1c6ed444043e7272c4f9e233818a44b
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<phpdoc:classref xml:id="class.sessionhandlerinterface" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
5
4

6
5
<title>The SessionHandlerInterface class</title>
...
...
@@ -28,25 +27,22 @@
28
27
&reftitle.interfacesynopsis;
29
28

30
29
<!-- {{{ Synopsis -->
31
-
<classsynopsis>
32
-
<ooclass><classname>SessionHandlerInterface</classname></ooclass>
33
-

34
-
<!-- {{{ Class synopsis -->
35
-
<classsynopsisinfo>
36
-
<oointerface>
37
-
<interfacename>SessionHandlerInterface</interfacename>
38
-
</oointerface>
39
-
</classsynopsisinfo>
40
-
<!-- }}} -->
30
+
<classsynopsis class="interface">
31
+
<oointerface>
32
+
<interfacename>SessionHandlerInterface</interfacename>
33
+
</oointerface>
41
34

42
35
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
43
-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.sessionhandlerinterface')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
36
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.sessionhandlerinterface')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='SessionHandlerInterface'])">
37
+
<xi:fallback/>
38
+
</xi:include>
44
39
</classsynopsis>
45
40
<!-- }}} -->
46
41

47
42
</section>
48
43

49
44
<section xml:id="sessionhandlerinterface.examples">
45
+
&reftitle.examples;
50
46
<example>
51
47
<title>
52
48
Example using <classname>SessionHandlerInterface</classname>
...
...
@@ -93,7 +89,7 @@ class MySessionHandler implements SessionHandlerInterface
93
89
return true;
94
90
}
95
91

96
-
#[ReturnTypeWillChange]
92
+
#[\ReturnTypeWillChange]
97
93
public function read($id)
98
94
{
99
95
return (string)@file_get_contents("$this->savePath/sess_$id");
...
...
@@ -114,7 +110,7 @@ class MySessionHandler implements SessionHandlerInterface
114
110
return true;
115
111
}
116
112

117
-
#[ReturnTypeWillChange]
113
+
#[\ReturnTypeWillChange]
118
114
public function gc($maxlifetime)
119
115
{
120
116
foreach (glob("$this->savePath/sess_*") as $file) {
...
...
@@ -142,7 +138,6 @@ session_start();
142
138
&reference.session.entities.sessionhandlerinterface;
143
139

144
140
</phpdoc:classref>
145
-

146
141
<!-- Keep this comment at the end of the file
147
142
Local variables:
148
143
mode: sgml
149
144