|
Ubiquity 2.5.2
php rapid development framework
|
Inheritance diagram for DatabaseTransactionsTrait:Public Member Functions | |
| beginTransaction () | |
| Initiates a transaction. | |
| commit () | |
| Commits a transaction. | |
| commitToLevel ($transactionLevel) | |
| Commits nested transactions up to level $transactionLevel. | |
| commitAll () | |
| Commits all nested transactions (up to level 0) | |
| rollBack () | |
| Rolls back a transaction. | |
| rollBackToLevel ($transactionLevel) | |
| Rolls back nested transactions up to level $transactionLevel. | |
| rollBackAll () | |
| Rolls back all nested transactions (up to level 0) | |
| inTransaction () | |
| Checks if inside a transaction. | |
| callInTransaction ($callback,... $parameters) | |
| Call a callback with an array of parameters in a transaction. | |
| setIsolationLevel ($isolationLevel) | |
| Sets the isolation level for transactions. | |
Protected Member Functions | |
| nestable () | |
Protected Attributes | |
| $transactionLevel = 0 | |
Definition at line 18 of file DatabaseTransactionsTrait.php.
| beginTransaction | ( | ) |
Initiates a transaction.
Definition at line 30 of file DatabaseTransactionsTrait.php.
| callInTransaction | ( | $callback, | |
| $parameters | |||
| ) |
Call a callback with an array of parameters in a transaction.
| callable | $callback | |
| mixed | ...$parameters |
Exception
Definition at line 138 of file DatabaseTransactionsTrait.php.
| commit | ( | ) |
Commits a transaction.
Definition at line 48 of file DatabaseTransactionsTrait.php.
| commitAll | ( | ) |
Commits all nested transactions (up to level 0)
Definition at line 78 of file DatabaseTransactionsTrait.php.
| commitToLevel | ( | $transactionLevel | ) |
Commits nested transactions up to level $transactionLevel.
| int | $transactionLevel |
Definition at line 65 of file DatabaseTransactionsTrait.php.
| inTransaction | ( | ) |
Checks if inside a transaction.
Definition at line 126 of file DatabaseTransactionsTrait.php.
|
protected |
Definition at line 21 of file DatabaseTransactionsTrait.php.
| rollBack | ( | ) |
Rolls back a transaction.
Definition at line 87 of file DatabaseTransactionsTrait.php.
| rollBackAll | ( | ) |
Rolls back all nested transactions (up to level 0)
Definition at line 117 of file DatabaseTransactionsTrait.php.
| rollBackToLevel | ( | $transactionLevel | ) |
Rolls back nested transactions up to level $transactionLevel.
| int | $transactionLevel |
Definition at line 104 of file DatabaseTransactionsTrait.php.
| setIsolationLevel | ( | $isolationLevel | ) |
Sets the isolation level for transactions.
| $isolationLevel |
| DBException |
Definition at line 166 of file DatabaseTransactionsTrait.php.
|
protected |
Definition at line 19 of file DatabaseTransactionsTrait.php.