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 TConnection

Description

Singleton manager for database connections

Located in /database/TConnection.php (line 17)


	
			
Method Summary
static getDatabaseInfo ($database)
static open ($database)
static openArray ($db)
static setConfigPath ($path)
Methods
static getDatabaseInfo (line 209)

Returns the database information as an array

  • access: public
static getDatabaseInfo ($database)
  • $database: INI File
static open (line 36)

Opens a database connection

  • return: PDO object if the $database exist, otherwise, throws an exception
  • exception: Exception if the $database is not found
  • access: public
static open ($database)
  • $database: Name of the database (an INI file).
static openArray (line 65)

Opens a database connection from array with db info

  • return: PDO object
  • access: public
static openArray ($db)
  • $db: Array with database info
static setConfigPath (line 54)

Change database configuration Path

  • access: public
static setConfigPath ($path)
  • $path: Config path