reference/spl/splfileinfo/openfile.xml
d51166ca16fda8e766849505b84f9306ef443f71
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="splfileinfo.openfile" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>SplFileInfo::openFile</refname>
...
...
@@ -9,11 +8,11 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
11
+
<methodsynopsis role="SplFileInfo">
13
12
<modifier>public</modifier> <type>SplFileObject</type><methodname>SplFileInfo::openFile</methodname>
14
-
<methodparam choice="opt"><type>string</type><parameter>open_mode</parameter><initializer>"r"</initializer></methodparam>
15
-
<methodparam choice="opt"><type>bool</type><parameter>use_include_path</parameter><initializer>&false;</initializer></methodparam>
16
-
<methodparam choice="opt"><type>resource</type><parameter>context</parameter><initializer>&null;</initializer></methodparam>
13
+
<methodparam choice="opt"><type>string</type><parameter>mode</parameter><initializer>"r"</initializer></methodparam>
14
+
<methodparam choice="opt"><type>bool</type><parameter>useIncludePath</parameter><initializer>&false;</initializer></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>resource</type><type>null</type></type><parameter>context</parameter><initializer>&null;</initializer></methodparam>
17
16
</methodsynopsis>
18
17
<para>
19
18
Creates an <classname>SplFileObject</classname> <type>object</type> of
...
...
@@ -29,7 +28,7 @@
29
28
<para>
30
29
<variablelist>
31
30
<varlistentry>
32
-
<term><parameter>open_mode</parameter></term>
31
+
<term><parameter>mode</parameter></term>
33
32
<listitem>
34
33
<para>
35
34
The mode for opening the file. See the <function>fopen</function>
...
...
@@ -39,7 +38,7 @@
39
38
</listitem>
40
39
</varlistentry>
41
40
<varlistentry>
42
-
<term><parameter>use_include_path</parameter></term>
41
+
<term><parameter>useIncludePath</parameter></term>
43
42
<listitem>
44
43
<para>
45
44
&parameter.use_include_path;
...
...
@@ -73,6 +72,30 @@
73
72
</para>
74
73
</refsect1>
75
74

75
+
<refsect1 role="changelog">
76
+
&reftitle.changelog;
77
+
<para>
78
+
<informaltable>
79
+
<tgroup cols="2">
80
+
<thead>
81
+
<row>
82
+
<entry>&Version;</entry>
83
+
<entry>&Description;</entry>
84
+
</row>
85
+
</thead>
86
+
<tbody>
87
+
<row>
88
+
<entry>8.0.0</entry>
89
+
<entry>
90
+
<parameter>context</parameter> is now nullable.
91
+
</entry>
92
+
</row>
93
+
</tbody>
94
+
</tgroup>
95
+
</informaltable>
96
+
</para>
97
+
</refsect1>
98
+

76
99
<refsect1 role="examples">
77
100
&reftitle.examples;
78
101
<para>
...
...
@@ -108,7 +131,6 @@ if ($fileinfo->isWritable()) {
108
131
</refsect1>
109
132

110
133
</refentry>
111
-

112
134
<!-- Keep this comment at the end of the file
113
135
Local variables:
114
136
mode: sgml
115
137