Lançado Adianti Framework 7.6!
Clique aqui para saber mais
menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Class TTransaction

Description

Manage Database transactions

Located in /database/TTransaction.php (line 24)


	
			
Method Summary
static close ()
static closeAll ()
static dump ([$file = null])
static get ()
static getDatabase ()
static getDatabaseInfo ()
static getUniqId ()
static log ($message)
static open ($database, [$dbinfo = NULL])
static openFake ($database)
static rollback ()
static rollbackAll ()
static setLogger ($logger)
static setLoggerFunction ($logger)
Methods
static close (line 142)

Commit all the pending operations

  • access: public
static close ()
static closeAll (line 167)

close all transactions

  • access: public
static closeAll ()
static dump (line 289)

Enable transaction log

  • access: public
static dump ([$file = null])
  • $file
static get (line 113)

Returns the current active connection

  • access: public
static get ()
static getDatabase (line 256)

Return the Database Name

  • access: public
static getDatabase ()
static getDatabaseInfo (line 267)

Returns the Database Information

  • access: public
static getDatabaseInfo ()
static getUniqId (line 278)

Returns the Transaction uniqid

  • access: public
static getUniqId ()
static log (line 228)

Write a message in the LOG file, using the user strategy

  • access: public
static log ($message)
  • $message: Message to be logged
static open (line 44)

Open a connection and Initiates a transaction

  • access: public
static open ($database, [$dbinfo = NULL])
  • $database: Name of the database (an INI file).
  • $dbinfo: Optional array with database information
static openFake (line 101)

Open fake transaction

  • access: public
static openFake ($database)
  • $database: Name of the database (an INI file).
static rollback (line 124)

Rollback all pending operations

  • access: public
static rollback ()
static rollbackAll (line 180)

rollback all transactions

  • access: public
static rollbackAll ()
static setLogger (line 211)

Assign a Logger strategy

  • access: public
static setLogger ($logger)
  • $logger: A TLogger child object
static setLoggerFunction (line 194)

Assign a Logger closure function

  • access: public
static setLoggerFunction ($logger)
  • $logger: A Closure