wCMF
3.6
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
wCMF
wCMF API Documentation
architecture
configuration
credits
dbschema
extensionpoints
howto
howtostart
Todo List
Deprecated List
Modules
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Groups
Pages
class.PDOConnection.php
Go to the documentation of this file.
1
<?php
2
/**
3
* wCMF - wemove Content Management Framework
4
* Copyright (C) 2005-2014 wemove digital solutions GmbH
5
*
6
* Licensed under the terms of any of the following licenses
7
* at your choice:
8
*
9
* - GNU Lesser General Public License (LGPL)
10
* http://www.gnu.org/licenses/lgpl.html
11
* - Eclipse Public License (EPL)
12
* http://www.eclipse.org/org/documents/epl-v10.php
13
*
14
* See the license.txt file distributed with this work for
15
* additional information.
16
*
17
* $Id$
18
*/
19
20
/**
21
* @class PDOConnection
22
* @ingroup Mapper
23
* @brief PDOConnection extends PDO.
24
*
25
* @author ingo herwig <ingo@wemove.com>
26
*/
27
class
PDOConnection
extends
PDO {
28
protected
$_inTransaction
=
false
;
29
30
/**
31
* @see PDO::beginTransaction
32
*/
33
function
beginTransaction
()
34
{
35
if
($this->_inTransaction) {
36
return
false
;
37
}
38
else
{
39
$this->_inTransaction = parent::beginTransaction();
40
return
$this->_inTransaction
;
41
}
42
}
43
44
/**
45
* @see PDO::commit
46
*/
47
function
commit
()
48
{
49
if
($this->_inTransaction) {
50
parent::commit();
51
$this->_inTransaction =
false
;
52
}
53
}
54
55
/**
56
* @see PDO::rollback
57
*/
58
function
rollback
()
59
{
60
if
($this->_inTransaction) {
61
parent::rollback();
62
$this->_inTransaction =
false
;
63
}
64
}
65
}
66
?>
PDOConnection\$_inTransaction
$_inTransaction
Definition:
class.PDOConnection.php:28
PDOConnection\rollback
rollback()
Definition:
class.PDOConnection.php:58
PDOConnection
PDOConnection extends PDO.
Definition:
class.PDOConnection.php:27
PDOConnection\commit
commit()
Definition:
class.PDOConnection.php:47
PDOConnection\beginTransaction
beginTransaction()
Definition:
class.PDOConnection.php:33
wcmf3.x
SVN
framework
wcmf
lib
persistence
pdo
class.PDOConnection.php
Generated on Wed Feb 5 2014 10:51:05 for wCMF by
1.8.6