reference/mysqli/mysqli_result/fetch-field.xml
5152c78db935ea2463e20a01ae0e3f3573314d78
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xml:id="mysqli-result.fetch-field" xmlns="http://docbook.org/ns/docbook">
3
+
<refentry xml:id="mysqli-result.fetch-field" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude">
4
4
<refnamediv>
5
5
<refname>mysqli_result::fetch_field</refname>
6
6
<refname>mysqli_fetch_field</refname>
...
...
@@ -9,14 +9,14 @@
9
9

10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
-
<para>Object oriented style (method):</para>
13
-
<methodsynopsis>
14
-
<type>object</type><methodname>mysqli_result::fetch_field</methodname>
12
+
<para>&style.oop;</para>
13
+
<methodsynopsis role="mysqli_result">
14
+
<modifier>public</modifier> <type class="union"><type>object</type><type>false</type></type><methodname>mysqli_result::fetch_field</methodname>
15
15
<void/>
16
16
</methodsynopsis>
17
-
<para>Procedural style:</para>
17
+
<para>&style.procedural;</para>
18
18
<methodsynopsis>
19
-
<type>object</type><methodname>mysqli_fetch_field</methodname>
19
+
<type class="union"><type>object</type><type>false</type></type><methodname>mysqli_fetch_field</methodname>
20
20
<methodparam><type>mysqli_result</type><parameter>result</parameter></methodparam>
21
21
</methodsynopsis>
22
22
<para>
...
...
@@ -41,71 +41,15 @@
41
41
Returns an object which contains field definition information or &false;
42
42
if no field information is available.
43
43
</para>
44
-
<para>
45
-
<table>
46
-
<title>Object properties</title>
47
-
<tgroup cols='2'>
48
-
<thead>
49
-
<row>
50
-
<entry>Property</entry>
51
-
<entry>Description</entry>
52
-
</row>
53
-
</thead>
54
-
<tbody>
55
-
<row>
56
-
<entry>name</entry>
57
-
<entry>The name of the column</entry>
58
-
</row>
59
-
<row>
60
-
<entry>orgname</entry>
61
-
<entry>Original column name if an alias was specified</entry>
62
-
</row>
63
-
<row>
64
-
<entry>table</entry>
65
-
<entry>The name of the table this field belongs to (if not calculated)</entry>
66
-
</row>
67
-
<row>
68
-
<entry>orgtable</entry>
69
-
<entry>Original table name if an alias was specified</entry>
70
-
</row>
71
-
<row>
72
-
<entry>def</entry>
73
-
<entry>The default value for this field, represented as a string</entry>
74
-
</row>
75
-
<row>
76
-
<entry>max_length</entry>
77
-
<entry>The maximum width of the field for the result set.</entry>
78
-
</row>
79
-
<row>
80
-
<entry>length</entry>
81
-
<entry>The width of the field, as specified in the table definition.</entry>
82
-
</row>
83
-
<row>
84
-
<entry>charsetnr</entry>
85
-
<entry>The character set number for the field.</entry>
86
-
</row>
87
-
<row>
88
-
<entry>flags</entry>
89
-
<entry>An integer representing the bit-flags for the field.</entry>
90
-
</row>
91
-
<row>
92
-
<entry>type</entry>
93
-
<entry>The data type used for this field</entry>
94
-
</row>
95
-
<row>
96
-
<entry>decimals</entry>
97
-
<entry>The number of decimals used (for integer fields)</entry>
98
-
</row>
99
-
</tbody>
100
-
</tgroup>
101
-
</table>
102
-
</para>
44
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('mysqli-result.fetch-fields')/db:refsect1[@role='returnvalues']/db:table)">
45
+
<xi:fallback/>
46
+
</xi:include>
103
47
</refsect1>
104
48

105
49
<refsect1 role="examples">
106
50
&reftitle.examples;
107
51
<example>
108
-
<title>Object oriented style</title>
52
+
<title>&style.oop;</title>
109
53
<programlisting role="php">
110
54
<![CDATA[
111
55
<?php
...
...
@@ -137,10 +81,10 @@ if ($result = $mysqli->query($query)) {
137
81
$mysqli->close();
138
82
?>
139
83
]]>
140
-
</programlisting>
84
+
</programlisting>
141
85
</example>
142
86
<example>
143
-
<title>Procedural style</title>
87
+
<title>&style.procedural;</title>
144
88
<programlisting role="php">
145
89
<![CDATA[
146
90
<?php
...
...
@@ -173,9 +117,8 @@ mysqli_close($link);
173
117
?>
174
118
]]>
175
119
</programlisting>
176
-
</example>
177
-
&example.outputs;
178
-
<screen>
120
+
&examples.outputs;
121
+
<screen>
179
122
<![CDATA[
180
123
Name: Name
181
124
Table: Country
...
...
@@ -190,7 +133,8 @@ Flags: 32769
190
133
Type: 4
191
134

192
135
]]>
193
-
</screen>
136
+
</screen>
137
+
</example>
194
138
</refsect1>
195
139

196
140
<refsect1 role="seealso">
...
...
@@ -206,7 +150,6 @@ Type: 4
206
150
</refsect1>
207
151

208
152
</refentry>
209
-

210
153
<!-- Keep this comment at the end of the file
211
154
Local variables:
212
155
mode: sgml
213
156