reference/fileinfo/functions/finfo-buffer.xml
1160ec4e7d21a2619e9661d6afe3a6356267c6c2
...
...
@@ -10,19 +10,19 @@
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
12
<para>&style.procedural;</para>
13
-
<methodsynopsis role="procedural">
14
-
<type>string</type><methodname>finfo_buffer</methodname>
15
-
<methodparam><type>resource</type><parameter>finfo</parameter></methodparam>
16
-
<methodparam><type>string</type><parameter>string</parameter><initializer>&null;</initializer></methodparam>
17
-
<methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>FILEINFO_NONE</initializer></methodparam>
18
-
<methodparam choice="opt"><type>resource</type><parameter>context</parameter><initializer>&null;</initializer></methodparam>
13
+
<methodsynopsis>
14
+
<type class="union"><type>string</type><type>false</type></type><methodname>finfo_buffer</methodname>
15
+
<methodparam><type>finfo</type><parameter>finfo</parameter></methodparam>
16
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
17
+
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>FILEINFO_NONE</constant></initializer></methodparam>
18
+
<methodparam choice="opt"><type class="union"><type>resource</type><type>null</type></type><parameter>context</parameter><initializer>&null;</initializer></methodparam>
19
19
</methodsynopsis>
20
20
<para>&style.oop;</para>
21
-
<methodsynopsis role="oop">
22
-
<modifier>public</modifier> <type>string</type><methodname>finfo::buffer</methodname>
23
-
<methodparam><type>string</type><parameter>string</parameter><initializer>&null;</initializer></methodparam>
24
-
<methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>FILEINFO_NONE</initializer></methodparam>
25
-
<methodparam choice="opt"><type>resource</type><parameter>context</parameter><initializer>&null;</initializer></methodparam>
21
+
<methodsynopsis role="finfo">
22
+
<modifier>public</modifier> <type class="union"><type>string</type><type>false</type></type><methodname>finfo::buffer</methodname>
23
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
24
+
<methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>FILEINFO_NONE</constant></initializer></methodparam>
25
+
<methodparam choice="opt"><type class="union"><type>resource</type><type>null</type></type><parameter>context</parameter><initializer>&null;</initializer></methodparam>
26
26
</methodsynopsis>
27
27

28
28
<para>
...
...
@@ -37,9 +37,7 @@
37
37
<varlistentry>
38
38
<term><parameter>finfo</parameter></term>
39
39
<listitem>
40
-
<para>
41
-
Fileinfo resource returned by <function>finfo_open</function>.
42
-
</para>
40
+
&fileinfo.parameters.finfo;
43
41
</listitem>
44
42
</varlistentry>
45
43
<varlistentry>
...
...
@@ -51,7 +49,7 @@
51
49
</listitem>
52
50
</varlistentry>
53
51
<varlistentry>
54
-
<term><parameter>options</parameter></term>
52
+
<term><parameter>flags</parameter></term>
55
53
<listitem>
56
54
<para>
57
55
One or disjunction of more <link linkend="fileinfo.constants">Fileinfo
...
...
@@ -77,6 +75,29 @@
77
75
</para>
78
76
</refsect1>
79
77

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

80
101
<refsect1 role="examples">
81
102
&reftitle.examples;
82
103
<para>
...
...
@@ -110,7 +131,6 @@ application/x-sh; charset=us-ascii
110
131
</refsect1>
111
132

112
133
</refentry>
113
-

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