Changeset 1791 for trunk/htdocs/system/classes/databaseconnection.php
- Timestamp:
- 05/22/08 03:59:31 (8 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/classes/databaseconnection.php
r1737 r1791 16 16 private $pdo= NULL; // handle to the PDO interface 17 17 private $pdo_statement= NULL; // handle for a PDOStatement 18 private $pdo_transaction= FALSE; // handle for transaction status 18 19 19 20 /** … … 127 128 { 128 129 return ( NULL != $this->pdo ); 130 } 131 132 /** 133 * Check whether there is a transaction underway. 134 * 135 * @return boolean 136 */ 137 public function in_transaction() 138 { 139 return $this->pdo_transaction; 129 140 } 130 141 … … 342 353 { 343 354 $this->pdo->beginTransaction(); 355 $this->pdo_transaction= TRUE; 344 356 } 345 357 … … 352 364 { 353 365 $this->pdo->rollBack(); 366 $this->pdo_transaction= FALSE; 354 367 } 355 368 … … 360 373 { 361 374 $this->pdo->commit(); 375 $this->pdo_transaction= FALSE; 362 376 } 363 377
