reference/pdo/pdo/rollback.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.rollback" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
...
...
@@ -10,15 +10,14 @@
10
10

11
11
<refsect1 role="description">
12
12
&reftitle.description;
13
-
<methodsynopsis>
14
-
<type>bool</type><methodname>PDO::rollBack</methodname>
13
+
<methodsynopsis role="PDO">
14
+
<modifier>public</modifier> <type>bool</type><methodname>PDO::rollBack</methodname>
15
15
<void/>
16
16
</methodsynopsis>
17
17

18
18
<para>
19
19
Rolls back the current transaction, as initiated by
20
-
<function>PDO::beginTransaction</function>. A <classname>PDOException</classname>
21
-
will be thrown if no transaction is active.
20
+
<methodname>PDO::beginTransaction</methodname>.
22
21
</para>
23
22
<para>
24
23
If the database was set to autocommit mode, this function will restore
...
...
@@ -33,6 +32,11 @@
33
32
</para>
34
33
</refsect1>
35
34

35
+
<refsect1 role="parameters">
36
+
&reftitle.parameters;
37
+
&no.function.parameters;
38
+
</refsect1>
39
+

36
40
<refsect1 role="returnvalues">
37
41
&reftitle.returnvalues;
38
42
<para>
...
...
@@ -40,6 +44,14 @@
40
44
</para>
41
45
</refsect1>
42
46

47
+
<refsect1 role="errors">
48
+
&reftitle.errors;
49
+
<para>
50
+
Throws a <classname>PDOException</classname> if there is no active transaction.
51
+
</para>
52
+
&pdo.errors.exception-not-errmode;
53
+
</refsect1>
54
+

43
55
<refsect1 role="examples">
44
56
&reftitle.examples;
45
57
<para>
...
...
@@ -77,8 +89,8 @@ $dbh->rollBack();
77
89
&reftitle.seealso;
78
90
<para>
79
91
<simplelist>
80
-
<member><function>PDO::beginTransaction</function></member>
81
-
<member><function>PDO::commit</function></member>
92
+
<member><methodname>PDO::beginTransaction</methodname></member>
93
+
<member><methodname>PDO::commit</methodname></member>
82
94
<member><link linkend="pdo.transactions">Transactions and auto-commit</link></member>
83
95
</simplelist>
84
96
</para>
...
...
@@ -86,7 +98,6 @@ $dbh->rollBack();
86
98

87
99

88
100
</refentry>
89
-

90
101
<!-- Keep this comment at the end of the file
91
102
Local variables:
92
103
mode: sgml
93
104