Determines if there is an active transaction open.
TRUE if we're currently in a transaction, FALSE otherwise.
public function inTransaction() { return $this ->transactionDepth() > 0; }