Documentation

目次

前のトピックへ

< Interface Phalcon\Mvc\Model\ResultsetInterface

次のトピックへ

Interface Phalcon\Mvc\Model\Transaction\ManagerInterface >

このページ

Interface Phalcon\Mvc\Model\TransactionInterface

Phalcon\Mvc\Model\TransactionInterface initializer

Methods

abstract public __construct (Phalcon\DiInterface $dependencyInjector, [boolean $autoBegin], [string $service])

Phalcon\Mvc\Model\Transaction constructor

abstract public setTransactionManager (Phalcon\Mvc\Model\Transaction\ManagerInterface $manager)

Sets transaction manager related to the transaction

abstract public boolean begin ()

Starts the transaction

abstract public boolean commit ()

Commits the transaction

abstract public boolean rollback ([string $rollbackMessage], [Phalcon\Mvc\ModelInterface $rollbackRecord])

Rollbacks the transaction

abstract public string getConnection ()

Returns connection related to transaction

abstract public setIsNewTransaction (boolean $isNew)

Sets if is a reused transaction or new once

abstract public setRollbackOnAbort (boolean $rollbackOnAbort)

Sets flag to rollback on abort the HTTP connection

abstract public boolean isManaged ()

Checks whether transaction is managed by a transaction manager

abstract public array getMessages ()

Returns validations messages from last save try

abstract public boolean isValid ()

Checks whether internal connection is under an active transaction

abstract public setRollbackedRecord (Phalcon\Mvc\ModelInterface $record)

Sets object which generates rollback action