Copied!

TransactionHandler

TransactionHandler.php : 15
Interface

The Persistence Transaction handler for Storage Engine.

Methods

publicbeginTransaction()

TransactionHandler.php : 23

Begin transaction.

public beginTransaction() : mixed

Begins an transaction, make sure you'll call commit or rollback when done, otherwise work will be lost.

publiccommit()

TransactionHandler.php : 32

Commit transaction.

public commit() : mixed

Commit transaction, or throw exceptions if no transactions has been started.

Tags
Throws
RuntimeException

If no transaction has been started

publicrollback()

TransactionHandler.php : 41

Rollback transaction.

public rollback() : mixed

Rollback transaction, or throw exceptions if no transactions has been started.

Tags
Throws
RuntimeException

If no transaction has been started