W3cubDocs

/Phalcon 2

Interface Phalcon\Mvc\Model\Transaction\ManagerInterface

Phalcon\Mvc\Model\Transaction\ManagerInterface initializer

Methods

abstract public boolean has ()

Checks whether manager has an active transaction

abstract public Phalcon\Mvc\Model\TransactionInterface get ([boolean $autoBegin])

Returns a new Phalcon\Mvc\Model\Transaction or an already created once

abstract public rollbackPendent ()

Rollbacks active transactions within the manager

abstract public commit ()

Commmits active transactions within the manager

abstract public rollback ([boolean $collect])

Rollbacks active transactions within the manager Collect will remove transaction from the manager

abstract public notifyRollback (Phalcon\Mvc\Model\TransactionInterface $transaction)

Notifies the manager about a rollbacked transaction

abstract public notifyCommit (Phalcon\Mvc\Model\TransactionInterface $transaction)

Notifies the manager about a commited transaction

abstract public collectTransactions ()

Remove all the transactions from the manager

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Mvc_Model_Transaction_ManagerInterface.html