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 19)


	
			
Method Summary
static close ()
static get ()
static getDatabase ()
static getDatabaseInfo ()
static log ($message)
static open ($database, [$dbinfo = NULL])
static rollback ()
static setLogger ($logger)
static setLoggerFunction ($logger)
Methods
static close (line 118)

Commit all the pending operations

  • access: public
static close ()
static get (line 89)

Returns the current active connection

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

Return the Database Name

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

Returns the Database Information

  • access: public
static getDatabaseInfo ()
static log (line 174)

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

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

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 rollback (line 100)

Rollback all pending operations

  • access: public
static rollback ()
static setLogger (line 157)

Assign a Logger strategy

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

Assign a Logger closure function

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