reference/pdo/pdostatement/getcolumnmeta.xml
661e6858acade9f5a08fc8f9c07b605f42f4a700
...
...
@@ -9,20 +9,22 @@
9
9
</refnamediv>
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
-
<methodsynopsis>
13
-
<type>array</type><methodname>PDOStatement::getColumnMeta</methodname>
12
+
<methodsynopsis role="PDOStatement">
13
+
<modifier>public</modifier> <type class="union"><type>array</type><type>false</type></type><methodname>PDOStatement::getColumnMeta</methodname>
14
14
<methodparam><type>int</type><parameter>column</parameter></methodparam>
15
15
</methodsynopsis>
16
16
17
-
&warn.experimental.func;
18
17
<para>
19
18
Retrieves the metadata for a 0-indexed column in a result set as an
20
19
associative array.
21
20
</para>
22
21
<warning>
23
22
<simpara>
24
-
Not all PDO drivers support
25
-
<function>PDOStatement::getColumnMeta</function>.
23
+
Some drivers may not implement
24
+
<methodname>PDOStatement::getColumnMeta</methodname>,
25
+
as it is optional. However, all
26
+
<link linkend="pdo.drivers">PDO drivers</link>
27
+
documented in the manual implement this function.
26
28
</simpara>
27
29
</warning>
28
30

...
...
@@ -52,8 +54,8 @@
52
54
<table>
53
55
<title>Column metadata</title>
54
56
<tgroup cols="2">
55
-
<colspec colname='c1'/>
56
-
<colspec colname='c2'/>
57
+
<colspec colname="c1"/>
58
+
<colspec colname="c2"/>
57
59
<thead>
58
60
<row>
59
61
<entry>Name</entry>
...
...
@@ -69,7 +71,7 @@
69
71
<entry><literal>driver:decl_type</literal></entry>
70
72
<entry>The SQL type used to represent the column value in the database.
71
73
If the column in the result set is the result of a function, this value
72
-
is not returned by <function>PDOStatement::getColumnMeta</function>.
74
+
is not returned by <methodname>PDOStatement::getColumnMeta</methodname>.
73
75
</entry>
74
76
</row>
75
77
<row>
...
...
@@ -98,7 +100,8 @@
98
100
<row>
99
101
<entry><literal>pdo_type</literal></entry>
100
102
<entry>The type of this column as represented by the
101
-
<literal>PDO::PARAM_*</literal> constants.</entry>
103
+
<link linkend="pdo.constants"><literal>PDO::PARAM_*</literal>
104
+
constants</link>.</entry>
102
105
</row>
103
106
</tbody>
104
107
</tgroup>
...
...
@@ -118,28 +121,6 @@
118
121
</refsect1>
119
122
-->
120
123

121
-
<refsect1 role="changelog">
122
-
&reftitle.changelog;
123
-
<para>
124
-
<informaltable>
125
-
<tgroup cols="2">
126
-
<thead>
127
-
<row>
128
-
<entry>&Version;</entry>
129
-
<entry>&Description;</entry>
130
-
</row>
131
-
</thead>
132
-
<tbody>
133
-
<row>
134
-
<entry>5.2.3</entry>
135
-
<entry><literal>table</literal> field</entry>
136
-
</row>
137
-
</tbody>
138
-
</tgroup>
139
-
</informaltable>
140
-
</para>
141
-
</refsect1>
142
-

143
124
<refsect1 role="examples">
144
125
&reftitle.examples;
145
126
<para>
...
...
@@ -187,14 +168,13 @@ array(6) {
187
168
&reftitle.seealso;
188
169
<para>
189
170
<simplelist>
190
-
<member><function>PDOStatement::columnCount</function></member>
191
-
<member><function>PDOStatement::rowCount</function></member>
171
+
<member><methodname>PDOStatement::columnCount</methodname></member>
172
+
<member><methodname>PDOStatement::rowCount</methodname></member>
192
173
</simplelist>
193
174
</para>
194
175
</refsect1>
195
176

196
177
</refentry>
197
-

198
178
<!-- Keep this comment at the end of the file
199
179
Local variables:
200
180
mode: sgml
201
181