|
static | getDatabase ($offset='default') |
|
static | beginTransaction ($offset='default') |
| Initiates a transaction.
|
|
static | commit ($offset='default') |
| Commits a transaction.
|
|
static | commitToLevel ($transactionLevel, $offset='default') |
| Commits nested transactions up to level $transactionLevel.
|
|
static | commitAll ($offset='default') |
| Commits all nested transactions (up to level 0)
|
|
static | rollBack ($offset='default') |
| Rolls back a transaction.
|
|
static | rollBackToLevel ($transactionLevel, $offset='default') |
| Rolls back nested transactions up to level $transactionLevel.
|
|
static | rollBackAll ($offset='default') |
| Rolls back all nested transactions (up to level 0)
|
|
static | callInTransaction ($callback, $offset,... $parameters) |
| Call a callback with an array of parameters in a transaction.
|
|
static | setIsolationLevel (string $offset='default', $isolationLevel='READ COMMITTED') |
| Sets the isolation level for transactions.
|
|
Definition at line 15 of file DAOTransactionsTrait.php.
◆ beginTransaction()
static beginTransaction |
( |
|
$offset = 'default' | ) |
|
|
static |
Initiates a transaction.
- Parameters
-
string | $offset | the database offset to use |
- Returns
- boolean true on success or false on failure
Definition at line 25 of file DAOTransactionsTrait.php.
◆ callInTransaction()
static callInTransaction |
( |
|
$callback, |
|
|
|
$offset, |
|
|
|
$parameters |
|
) |
| |
|
static |
Call a callback with an array of parameters in a transaction.
- Parameters
-
callable | $callback | |
string | $offset | the database offset to use |
| mixed | ...$parameters |
- Exceptions
-
Exception
- Returns
- mixed
Definition at line 101 of file DAOTransactionsTrait.php.
◆ commit()
static commit |
( |
|
$offset = 'default' | ) |
|
|
static |
Commits a transaction.
- Parameters
-
string | $offset | the database offset to use |
- Returns
- boolean true on success or false on failure
Definition at line 35 of file DAOTransactionsTrait.php.
◆ commitAll()
static commitAll |
( |
|
$offset = 'default' | ) |
|
|
static |
Commits all nested transactions (up to level 0)
- Parameters
-
string | $offset | the database offset to use |
- Returns
- boolean true on success or false on failure
Definition at line 57 of file DAOTransactionsTrait.php.
◆ commitToLevel()
static commitToLevel |
( |
|
$transactionLevel, |
|
|
|
$offset = 'default' |
|
) |
| |
|
static |
Commits nested transactions up to level $transactionLevel.
- Parameters
-
int | $transactionLevel | |
string | $offset | the database offset to use |
- Returns
- boolean true on success or false on failure
Definition at line 46 of file DAOTransactionsTrait.php.
◆ getDatabase()
static getDatabase |
( |
|
$offset = 'default' | ) |
|
|
staticabstract |
◆ rollBack()
static rollBack |
( |
|
$offset = 'default' | ) |
|
|
static |
Rolls back a transaction.
- Parameters
-
string | $offset | the database offset to use |
- Returns
- boolean true on success or false on failure
Definition at line 67 of file DAOTransactionsTrait.php.
◆ rollBackAll()
static rollBackAll |
( |
|
$offset = 'default' | ) |
|
|
static |
Rolls back all nested transactions (up to level 0)
- Parameters
-
string | $offset | the database offset to use |
- Returns
- boolean true on success or false on failure
Definition at line 88 of file DAOTransactionsTrait.php.
◆ rollBackToLevel()
static rollBackToLevel |
( |
|
$transactionLevel, |
|
|
|
$offset = 'default' |
|
) |
| |
|
static |
Rolls back nested transactions up to level $transactionLevel.
- Parameters
-
int | $transactionLevel | |
string | $offset | the database offset to use |
- Returns
- boolean true on success or false on failure
Definition at line 78 of file DAOTransactionsTrait.php.
◆ setIsolationLevel()
static setIsolationLevel |
( |
string |
$offset = 'default' , |
|
|
|
$isolationLevel = 'READ COMMITTED' |
|
) |
| |
|
static |
Sets the isolation level for transactions.
- Parameters
-
string | $offset | |
string | $isolationLevel | |
- Returns
- mixed
Definition at line 111 of file DAOTransactionsTrait.php.
The documentation for this class was generated from the following file: