reference/pdo/pdostatement/fetchobject.xml
082ddc19f53e6e254010de1a1fbbe485ff744ec1
...
...
@@ -3,19 +3,19 @@
3
3
<refentry xml:id="pdostatement.fetchobject" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>PDOStatement::fetchObject</refname>
6
-
<refpurpose>Fetches the next row and returns it as an object.</refpurpose>
6
+
<refpurpose>Fetches the next row and returns it as an object</refpurpose>
7
7
</refnamediv>
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
-
<methodsynopsis>
11
-
<modifier>public</modifier> <type>mixed</type><methodname>PDOStatement::fetchObject</methodname>
12
-
<methodparam choice="opt"><type>string</type><parameter>class_name</parameter><initializer>"stdClass"</initializer></methodparam>
13
-
<methodparam choice="opt"><type>array</type><parameter>ctor_args</parameter></methodparam>
10
+
<methodsynopsis role="PDOStatement">
11
+
<modifier>public</modifier> <type class="union"><type>object</type><type>false</type></type><methodname>PDOStatement::fetchObject</methodname>
12
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>class</parameter><initializer>"stdClass"</initializer></methodparam>
13
+
<methodparam choice="opt"><type>array</type><parameter>constructorArgs</parameter><initializer>[]</initializer></methodparam>
14
14
</methodsynopsis>
15
15

16
16
<para>
17
17
Fetches the next row and returns it as an object. This function is an
18
-
alternative to <function>PDOStatement::fetch</function> with
18
+
alternative to <methodname>PDOStatement::fetch</methodname> with
19
19
<constant>PDO::FETCH_CLASS</constant> or
20
20
<constant>PDO::FETCH_OBJ</constant> style.
21
21
</para>
...
...
@@ -30,7 +30,7 @@
30
30
<para>
31
31
<variablelist>
32
32
<varlistentry>
33
-
<term><parameter>class_name</parameter></term>
33
+
<term><parameter>class</parameter></term>
34
34
<listitem>
35
35
<para>
36
36
Name of the created class.
...
...
@@ -38,7 +38,7 @@
38
38
</listitem>
39
39
</varlistentry>
40
40
<varlistentry>
41
-
<term><parameter>ctor_args</parameter></term>
41
+
<term><parameter>constructorArgs</parameter></term>
42
42
<listitem>
43
43
<para>
44
44
Elements of this array are passed to the constructor.
...
...
@@ -56,18 +56,22 @@
56
56
</para>
57
57
</refsect1>
58
58

59
+
<refsect1 role="errors">
60
+
&reftitle.errors;
61
+
&pdo.errors;
62
+
</refsect1>
63
+

59
64
<refsect1 role="seealso">
60
65
&reftitle.seealso;
61
66
<para>
62
67
<simplelist>
63
-
<member><function>PDOStatement::fetch</function></member>
68
+
<member><methodname>PDOStatement::fetch</methodname></member>
64
69
</simplelist>
65
70
</para>
66
71
</refsect1>
67
72

68
73

69
74
</refentry>
70
-

71
75
<!-- Keep this comment at the end of the file
72
76
Local variables:
73
77
mode: sgml
74
78