Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Transaction_Manager Class Reference
Inheritance diagram for Transaction_Manager:
MySource_Object

Public Member Functions

 Transaction_Manager ()
 
 inTransaction ($db_name)
 
 begin ($db_name)
 
 commit ($db_name)
 
 rollback ($db_name)
 
- Public Member Functions inherited from MySource_Object
 MySource_Object ()
 
 __sleep ()
 
 __wakeup ()
 

Additional Inherited Members

- Data Fields inherited from MySource_Object
 $_tmp
 

Detailed Description

Definition at line 29 of file transaction_manager.inc.

Member Function Documentation

begin (   $db_name)

Begins a transaction

Only does a real begin if this is the first begin

Parameters
string$db_namethe DAL connection pool identifier
Returns
boolean public

Definition at line 83 of file transaction_manager.inc.

commit (   $db_name)

Commits a transaction

Only does a real commit if this is the last commit

Parameters
string$db_namethe DAL connection pool identifier
Returns
boolean public

Definition at line 118 of file transaction_manager.inc.

inTransaction (   $db_name)

Returns whether we are in a transaction or not

Parameters
object&$dbthe database object to check
Returns
boolean public

Definition at line 66 of file transaction_manager.inc.

rollback (   $db_name)

Rolls back all open transactions

Only does a real rollback if this is the last rollback

Parameters
string$db_namethe DAL connection pool identifier
Returns
boolean public

Definition at line 166 of file transaction_manager.inc.

Constructor

Definition at line 51 of file transaction_manager.inc.


The documentation for this class was generated from the following file: