reference/pdo/pdo/commit.xml
661e6858acade9f5a08fc8f9c07b605f42f4a700
...
...
@@ -1,4 +1,4 @@
1
-
<?xml version="1.0" encoding="UTF-8"?>
1
+
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3
<refentry xml:id="pdo.commit" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
...
...
@@ -10,17 +10,22 @@
10
10

11
11
<refsect1 role="description">
12
12
&reftitle.description;
13
-
<methodsynopsis>
14
-
<type>bool</type><methodname>PDO::commit</methodname>
13
+
<methodsynopsis role="PDO">
14
+
<modifier>public</modifier> <type>bool</type><methodname>PDO::commit</methodname>
15
15
<void/>
16
16
</methodsynopsis>
17
17
<para>
18
18
Commits a transaction, returning the database connection to autocommit
19
-
mode until the next call to <function>PDO::beginTransaction</function>
19
+
mode until the next call to <methodname>PDO::beginTransaction</methodname>
20
20
starts a new transaction.
21
21
</para>
22
22
</refsect1>
23
23

24
+
<refsect1 role="parameters">
25
+
&reftitle.parameters;
26
+
&no.function.parameters;
27
+
</refsect1>
28
+

24
29
<refsect1 role="returnvalues">
25
30
&reftitle.returnvalues;
26
31
<para>
...
...
@@ -28,6 +33,14 @@
28
33
</para>
29
34
</refsect1>
30
35

36
+
<refsect1 role="errors">
37
+
&reftitle.errors;
38
+
<para>
39
+
Throws a <classname>PDOException</classname> if there is no active transaction.
40
+
</para>
41
+
&pdo.errors.exception-not-errmode;
42
+
</refsect1>
43
+

31
44
<refsect1 role="examples">
32
45
&reftitle.examples;
33
46
<para>
...
...
@@ -98,8 +111,8 @@ $dbh->commit();
98
111
&reftitle.seealso;
99
112
<para>
100
113
<simplelist>
101
-
<member><function>PDO::beginTransaction</function></member>
102
-
<member><function>PDO::rollBack</function></member>
114
+
<member><methodname>PDO::beginTransaction</methodname></member>
115
+
<member><methodname>PDO::rollBack</methodname></member>
103
116
<member><link linkend="pdo.transactions">Transactions and auto-commit</link></member>
104
117
</simplelist>
105
118
</para>
...
...
@@ -107,7 +120,6 @@ $dbh->commit();
107
120

108
121

109
122
</refentry>
110
-

111
123
<!-- Keep this comment at the end of the file
112
124
Local variables:
113
125
mode: sgml
114
126