PDO::inTransaction — Check if within a transaction (PHP 5 >= 5.3.3, Bundled pdo_pgsql)
bool PDO::inTransaction ( void )
Checks whether a transaction within the driver is currently active. This method only works with database drivers that support transactions.
This function has no parameters.
Returns TRUE if the current transaction is active, otherwise returns FALSE.