1 database.inc | public DatabaseConnection::inTransaction() |
Determines if there is an active transaction open.
Return value
bool: TRUE if we're currently in a transaction, FALSE otherwise.
File
- core/
includes/ database/ database.inc, line 1098 - Core systems for the database layer.
Class
- DatabaseConnection
- Base Database API class.
Code
public function inTransaction() {
return ($this->transactionDepth() > 0);
}